jade-reactify
v0.1.0
Published
jade-reactify =============
Downloads
4
Readme
Browserify Transform for transforming jade templates to react
Setup
When creating your browserify bundle, just add this line:
bundle.transform( require( "jade-reactify" ) );
or if you are a command line cowboy, something along the lines of
browserify -t jade-reactify entry.js -o bundle.js
Usage
var template = require( "./template.jade" );
template({key: "value"}, document.body );
It will render your template and sets document.body
's innerHTML
.
Warning
Internally it uses jade-react which doesn't fully support jade rendering, like children elements etc. So sometimes it returns [Object object]
:(
Licence
MIT