0.2.1 • Published 11 years ago

component-render v0.2.1

Weekly downloads
12
License
-
Repository
github
Last release
11 years ago

component-render

Render html files from template files for component

Installation

With Component previously installed:

    $ npm install -g component-render

Usage

  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>

Example

    # 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

template engine

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

TODO

  • -u, --use option

License

MIT license.

See the LICENSE.