2022.2

Table Of Contents
IftheresultofanexpressionshouldnotbeHTML-escaped,theexpressionmustbeenclosedinthree
curlybrackets:{{{...}}}.CharacterswithaspecialfunctioninHTMLwillthenbeinterpretedasHTML.
Forexample,thevalue"<b>Name</b>"willbedisplayedasName.
WhenanHTMLfieldisdraggedintoaHandlebarstemplateitisautomaticallyenclosedinthreecurly
brackets.
Note: Contentprovidedby'blockhelpers'-expressionsintheform{{#helperNameargu-
ments}}...{{/helperName}}-isnotautomaticallyHTML-escaped.See"Usingfunctionsinexpres-
sions:Helpers"below.
Testingexpressions
Totestwhetherexpressionsgivetheexpectedresult,simplyswitchtoPreviewmodeintheWork-
space.YoucouldalsodoaPreflighttotestwithmultiplerecords(see"DoingaPreflight"onpage378).
Logging
ValuescanbeloggedwithanexpressionthatusesthelogHelper.ForexamplesseeHandlebars'doc-
umentation.
Note: InOLConnectitisn'tpossibletosetaloglevelfortheHelper.Theloglevelisalways'info'.
LogmessageswillappearintheMessagespane(see"PreflightResultsandMessages"onpage519).
EscapingHandlebarsexpressions
Handlebarscontentmaybeescaped-i.e.displayedasis,withoutevaluatingtheexpression-bypre-
fixingitwith\(abackslash).Forexample:\{{FieldName}}willshowupintheoutputas{{FieldName}},
insteadofbeingreplacedwiththevalueofthedatafieldFieldName.
Rawblocks-Handlebarsexpressionswithfourcurlybracesatthestartandend-arenotsupported.
Using functions in expressions: Helpers
Note: TheinformationinthisOnlineHelpfocusesontheimplementationofHandlebarsinOL
Connect.ForgeneralinformationaboutHandlebarsandhowtouseit,seethefollowingweb
sites:https://handlebarsjs.com/andhttps://devdocs.io/handlebars.
FunctionsthatcanbeusedinaHandlebarsexpressionarecalledHelpers.
Example: {{dateLongDueDate}}
Page 330