new TemplateEngine()
A template engine uses a specific template and the data in a routing context to render a resource into a buffer.
Concrete implementations exist for several well-known template engines.
- Source:
Methods
-
render(context, templateFileName, handler)
-
Render
Parameters:
Name Type Description context
RoutingContext the routing context templateFileName
string the template file name to use handler
function the handler that will be called with a result containing the buffer or a failure. - Source: