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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    13
  • 0.0.3
    2
  • 0.0.2
    2
  • 0.0.1
    3

Package Sidebar

Install

npm i jademodule-brunch

Weekly Downloads

7

Version

0.0.4

License

none

Last publish

Collaborators

  • nunukim