0.1.2 • Published 11 years ago

bem-jade v0.1.2

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

This is a refactored fork of https://github.com/kizu/bemto, see https://github.com/kizu/bemto/Readme.md for syntax of mixins +b and +e.

Template:

include bem

+b.foo
  +e.bar baz

(need to make sure the interpreter can find bem.jade from this module).

JS:

var bem = require('bem-jade');
var jade = reqiure('jade');
var result = jade.renderFile('filename.jade', {
 bem: bem(),
 name: 'Joe'
});

The compiled function is still larger than non-bem equivalent, but gzips pretty good (lots of repetition), so the final overhead is <20%.

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago