2022.1

Table Of Contents
Handlebars.render("snippets/Template.hbs" )
is identical to:
const compiledTemplate = Handlebars.compile(
"snippets/Template.hbs" )
compiledTemplate(record )
The result of this function is HTML.
See also: "Handlebars templates" on page287.
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457.
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449.
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451.
* In all these functions, 'template' can be:
Page 461