component-render

Render html files from template files for component

component-render

Render html files from template files for component

With Component previously installed:

    $ npm install -g component-render
 
  Usage: component-render [options] <template>
 
  Options:
 
    -V, --version              
    -h, --help                 output usage information
    -l, --local <json>         local <json> file
    -o, --out <dir>            output the compiled html to <dir>
 
    # redner html file from template file
    $ component render simple.jade
 
    # render html file from template file with local json file
    $ component render -l user.json user.jade
 
    # render html file to output directory path
    $ component render -o ./render simple.jade
 

Support Jade template engine. Hogan, EJS, and other template engine, you can support with plugin.

  • -u, --use option

MIT license.

See the LICENSE.