Static
generateStatic
generateCreate a string using a registered template using some data
The name of a template already registered
The data employed to fill in the template
A string with the corresponding template filled in using the data provided; or an empty string, if the template does not exist.
Static
register
A utility class for managing and generating text using templates. This class acts as a wrapper of Handlebars, the engine employed to compile the templates We can register templates by name for reusing them, or create the text directly using a template.