2022.1

Table Of Contents
Unsupported features
The following Handlebars partials features are not supported in OL Connect.
l Passing a custom context as a parameter.
l Passing hash parameters (seehttps://devdocs.io/handlebars/partials#partial-parameters).
Handlebars API
This topic lists the functions of Handlebars that are supported in Designer scripts. It also lists
features that are unsupported in OL Connect.
Note
The information in this Online Help focuses on the implementation of Handlebars in OL
Connect. For general information about Handlebars and how to use it, see the following
web sites: https://handlebarsjs.com/ and https://devdocs.io/handlebars.
Functions
compile
('template')
Compiles the specified Handlebars template* into a function that can
be called with data. For example:
const template = Handlebars.compile
('snippets/Template1.hbs');
const result = template(record);
Note: Passing options is not supported in OL๎˜ƒConnect.
render('template',
data)
Renders a specified Handlebars template.*
If data is passed, that data is used to render the template.
If no data is passed, the current record is used to render the template.
Handlebars.render(๎˜ƒ"snippets/Template.hbs" )
is identical to:
const compiledTemplate = Handlebars.compile(๎˜ƒ
"snippets/Template.hbs" )
Page 990