2022.1

Table Of Contents
Note
An empty array is considered falsy (i.e. evaluated as false). This is normally not the case
in JavaScript, but the Handlebars library makes an exception.
The lookup helper and log block helper are not implemented in OL Connect.
The data variable @key is not supported in OLConnect. OL Connect only supports
iterating over arrays and tables, not over arbitrary objects.
Since content provided by a block helper is not HTML-escaped in OL Connect,
Handlebars' SafeString class is not needed and therefore not supported.
Examples of block helpers
#if
The following #if block will output a table row with two cells if the data field named O_L10095 is
not false, undefined, null, 0, an empty string, or an empty array.
{{#if O_L10095}}
<tr>
<td>Collective insurance</td>
<td>{{O_L10095}}</td>
</tr>
{{/if}}
#unless and #each
The following Handlebars template outputs a row with a header and a variable number of
clause descriptions, based on a detail table called 'Clause', unless there are no clauses, in
which case the row gets a header and one cell that displays the text 'None'.
<table class="policy-table">
<tbody>
{{#unless Clause}}
<tr>
<th class="h3">Clause(s)</th>
<td>None</td>
</tr>
{{else}}
{{#each Clause}}
<tr>
<th class="h3">{{#if @first}}Clause(s){{/if}}</th>
Page 983