jademodule-brunch

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i jademodule-brunch

Weekly Downloads

1

Version

0.0.4

License

none

Last publish

Collaborators

  • nunukim