2022.2

Table Of Contents
ThefollowingscriptloadsJSONandthenpassesthatJSONandthecurrentrecordtoaHandlebars
template.
const myJson = loadjson('snippets/myJson.json');
Handlebars.render(myHandlebarsTemplate, { json:myJson, record:record })
Assumingthejsoninthisexamplehasakeycalledkey1andtherecordhasafieldcalledfield1,expres-
sionsinthetemplatecouldlooklikethis:{{json.key1}}{{record.field1}}.
Unsupportedfeatures
ThefollowingfeaturesarenotsupportedinHandlebarstemplatesinOLConnect:
l
TheSafeStringclass.ItisnotneededsincetheresultofablockhelperisnotHTML-escaped
inOLConnect.
l
Inlineescapes.
l
Rawblockhelpers.
l
PassingoptionswhencompilingaHandlebarstemplate.
ThefollowingHandlebarspartialsfeaturesarenotsupportedinOLConnect.
l
Registeringmultiplepartialswithasinglecall.
l
Passingacustomcontextasaparameter.
l
Passinghashparameters(seehttps://devdocs.io/handlebars/partials#partial-parameters).
ThefollowingHandlebarshelpersfeaturesarenotsupportedinOLConnect.
l
Thelookuphelperandlogblockhelper.
l
Thedatavariable@key.OLConnectonlysupportsiteratingoverarraysandtables,notover
arbitraryobjects.
l
Registeringmultiplehelperswithasinglecall.
l
TheblockHelperMissingandhelperMissinghooks.
l
Passingoptions.hash,options.helpersandoptions.partialsargumentstohelpers.
(options.data,options.fnandoptions.inversearesupported.)
Preferences
ThePreferencesdialogisusedtomodifythegeneralsoftwarepreferences.Changesmadeinthisdia-
logaffectthesoftwareglobally,notindividualtemplatesanddatamappingconfigurations.
ThePreferencesdialogisseparatedintoindividualtabs,whereeachtabcontrolscertainaspectsofthe
software.
Page 782