1.0.0 • Published 11 years ago
hoganc v1.0.0
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.
1.0.0
11 years ago