jademodule-brunch

Adds Jade to brunch as a module.

npm install jademodule-brunch
2 downloads in the last week
20 downloads in the last month

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