The template string.
Optional
options: { The options to build the content.
Optional
missingThe built content.
This function returns a function which can build content by given data. Usage:
const template = 'Hello, {{name}}!';
const templateEngine = createTemplateEngine(template);
const data = { name: 'World' };
const content = templateEngine(data);
// content = 'Hello, World!'
For the details of how the engine works,
buildContentFromTemplateString
Generated using TypeDoc
Create a template engine with handlebars.