node-nhp is a html templating language which uses a variants of the moustache syntax, and tags similar to php for methods. Moustache code is run directly in NodeJS by converting all variables to local, so it can be as complex as you need.
- Getting started: installation, rendering, and Express integration.
- Template language: expressions, directives, includes, loops, and resolvers.
- API reference: the
NHPandTemplateAPIs, options, and lifecycle. - Command line: compiling
.nhpfiles from a package script or terminal.
Projects that depend on nhp can compile templates with nhp <input.nhp> [output.html]. When no output path is given, the command writes an .html file alongside the input.
node-nhp is licensed under Apache License 2.0