2022.2

Table Of Contents
{{#if O_L10095}}
<tr>
<td>Collective insurance</td>
<td>{{O_L10095}}</td>
</tr>
{{/if}}
#unless and #each
ThefollowingHandlebarstemplateoutputsarowwithaheaderandavariablenumberofclause
descriptions,basedonadetailtablecalled'Clause',unlesstherearenoclauses,inwhichcasetherow
getsaheaderandonecellthatdisplaysthetext'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>
<td>{{Descr}}</td>
</tr>
{{/each}}
{{/unless}}
</tbody>
</table>
#with and #each
This#withblockcallsacustomHelper(see"CreatingcustomHelpers"onpage771)thatreturnsan
objectwiththeproperties:object,amount,coverageandpremium.Theobject'spropertiesare
accesseddirectlyinsidetheblock.The#withblockisexecutedforeachoftherecordsinadetailtable
calledinsurance_coverage.
{{#each insurance_coverage}}
{{#with (getObjectAndCoverage)}}
<tr>
<td>{{object}}</td>
<td class="curr">€</td>
<td>{{amount}}</td>
<td>{{coverage}}</td>
<td class="curr">€</td>
<td>{{premium}}</td>
</tr>
{{/with}}
{{/each}}
Format Helpers
OLConnectprovidesanumberofHelperstoformat a valuethatistheresultofanexpression.
A"Helper"isafunctionthatcanbecalledinanexpression.
Page 769