hoganc

Yet another Hogan.js server-side templates CLI precompiler.

npm install hoganc
2 downloads in the last week
4 downloads in the last month

hoganc

Yet another Hogan.js server-side templates CLI precompiler.

The hulk which goes with the hogan.js is a great tool. But it doesn't allow you to customize template function name. So, hoganc does.

Install

npm install -g hoganc

Usage

hoganc -s /path/to/template [-o /path/to/output] [-n tplNameFunc] [-c] | -h

Options

-h, --help — Show help (works with any combinations of other keys)

-s, --source — Template file to compile (*required)

-o, --output — Output file (will be appended if exists, or "-" for stdout [default: "-"]

-n, --name — Template function name. [default: output as anonymous function]

-c, --class — Output as a "new Hogan.Template()"

TODO

  • Write mocha tests
  • Make module callable (it doesn't export anything at the moment)

License

MIT.

npm loves you