Classes
Methods
(static) TemplateHandler.create(engine, templateDirectory, contentType) → {TemplateHandler}
Create a handler
Parameters:
Name | Type | Description |
---|---|---|
engine |
TemplateEngine | the template engine |
templateDirectory |
string | the template directory where templates will be looked for |
contentType |
string | the content type header to be used in the response |
- Source:
Returns:
the handler
- Type
- TemplateHandler