Nantes Paradox Market

    jade-reactify

    0.1.0 • Public • Published

    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 -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

    Keywords

    none

    Install

    npm i jade-reactify

    DownloadsWeekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • oroce