0.0.4 • Published 11 years ago

jademodule-brunch v0.0.4

Weekly downloads
23
License
-
Repository
github
Last release
11 years ago

jademodule-brunch

Brunch plugin building Jade templates as RequireJS-like module

Usage

Build a jade module,

// hoge.jdlib
- exports.btn = function(label)
  button= name

- exports.text = function(name, value)
  input(type='text', name=name, value=value)

then,

// view.js
var hoge = require('./hoge');

$('body').append(hoge.text('mytext', 'Edit me!'));
$('body').append(hoge.btn('Click me!'));
0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

12 years ago