Yet another Hogan.js server-side templates CLI precompiler.
hulk which goes with the hogan.js is a great tool. But it doesn't allow you to customize template function name. So,
npm install -g hoganc
hoganc -s /path/to/template [-o /path/to/output] [-n tplNameFunc] [-c] | -h
-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()"
- Write mocha tests
- Make module callable (it doesn't export anything at the moment)