2022.1

Table Of Contents
compiledTemplate(record )
The result of this function is HTML.
See also: "Handlebars templates" on page781.
registerPartial
('name',
'template')
Registers a template* as a partial with the specified name.
For example, this line of code registers a template (clauses.hbs) as a
partial with the name 'clauses':
Handlebars.registerPartial('clauses',
'snippets/partials/clauses.hbs');
The partial can then be referred to by its name in Handlebars templates
as well as functions using {{> partialName}}. For example: {{>
clauses}}.
See: "Partials" on page986.
registerHelper() Registers a function as helper with the specified name.
Note: Registering multiple helpers with a single call is not supported.
See: "Handlebars expressions" on page979.
escapeHTML() HTML-escapes the supplied string. This means that those characters
that have a special function in HTML: & < > \" ' ` = are replaced with
HTML character references. For example: & will be changed into
&amp;.
See: "HTML values" on page981.
* In all these functions, 'template' can be:
l the name of an .hbs snippet in the template (for example:{{> snippets/Snippet
1.hbs}}
l the name of an .hbs snippet on disk (starting with file:///)
Page 991