Skip to content

Latest commit

 

History

History
executable file
·
21 lines (17 loc) · 1.66 KB

File metadata and controls

executable file
·
21 lines (17 loc) · 1.66 KB

Package Version Build Status Coverage Status Apache License 2.0 Donate to NexusTools

node-nhp

node-nhp is an HTML templating language that uses a variant of moustache syntax and processing-instruction tags for control flow and operations. Templates compile to async JavaScript functions, so expressions, directives, and loops can await promises.

documentation

command line

Projects that depend on nhp can compile templates to HTML with nhp <input.nhp> [output.html] or to standalone JavaScript Node.js modules with nhp -j <input.nhp> [output.js] (--js / --module). When no output path is given, the command writes a file alongside the input. See Command line documentation for details.

legal

node-nhp is licensed under Apache License 2.0