2022.1

Table Of Contents
l the name of a remote .hbs snippet (starting with http:// or https://)
l a string that contains HTML and Handlebars expressions.
With a snippet on disk, the complete syntax is:file://<host>/<path>. If the host is"localhost", it
can be omitted, resulting infile:///<path> - note the three forward slashes after file:.
In the remainder of the path you can either use escaped backward slashes:
"file:///C:\\Users\\Administrator\\Desktop\\Handlebars_LoadFile.hbs"
or forward slashes:
"file:///C:/Users/Administrator/Desktop/Handlebars_LoadFile.hbs"
Note
It is not possible to use loadhtml() in Handlebars functions. HTML with Handlebars
expressions is not necessarily valid HTML. Processing it with an HTML parser might
break both the Handlebars expressions and the HTML.
Unsupported features
The following features are not supported in Handlebars templates in OL Connect:
l The SafeString class. It is not needed since the result of a block helper is not HTML-
escaped in OL Connect.
l Inline escapes.
l Raw block helpers.
l Passing options when compiling a Handlebars template.
The following Handlebars partials features are not supported in OL Connect.
l Registering multiple partials with a single call.
l Passing a custom context as a parameter.
l Passing hash parameters (seehttps://devdocs.io/handlebars/partials#partial-parameters).
The following Handlebars helpers features are not supported in OL Connect.
l The lookup helper and log block helper.
l The data variable @key. OL Connect only supports iterating over arrays and tables, not
over arbitrary objects.
Page 992