Browserify Transform for transforming jade templates to react
Setup
When creating your browserify bundle, just add this line:
bundle;
or if you are a command line cowboy, something along the lines of
browserify -t jade-reactify entryjs -o bundlejs
Usage
var template = ;;
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