Novelty Promotes Magicians
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jstransformer-toffeepublic

    jstransformer-toffee

    Toffee support for JSTransformers.

    Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

    Installation

    npm install jstransformer-toffee
    

    API

    var toffee = require('jstransformer')(require('jstransformer-toffee'));
    var opts = {};
     
    toffee.render('<h1>Hello #{place}!</h1>', opts, {place: 'world'}).body;
    //=> '<h1>Hello world!</h1>'
     
     
    var promise = toffee.renderFileAsync('./path/to/hello.toffee', opts, {place: 'world'});
    promise.then(function(data) {
      console.log(data.body);
      //=> '<h1>Hello world!</h1>'
    });

    License

    MIT

    install

    npm i jstransformer-toffee

    Downloadsweekly downloads

    518

    version

    0.6.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar