A brunch plugin building jade templates as RequireJS-like module.
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
node_modules
src
README.md
package.json
setup.js

README.md

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!'));