Removing Handlebars References
In VDL 2.0 dynamic access to some entities, scenario properties and loop variables was achieved with the so-called Handlebars syntax.
This has been replaced in VDL 4.1 with the much more powerful dynamic expressions feature. Following are some examples of how you would convert from one to the other:
Example 1
Scenario {{scenario.name}} was created on {{scenario.creationDate}}. Scenario <span vdl-text="=scenario.props.name"></span> was created on <span vdl-text="=scenario.props.creationDate"></span>
Example 2
There are {{scenario.CHANNELS.length}} channels. The first channel is named {{scenario.CHANNELS.0.label}} and it has a value of {{scenario.CHANNELS.0.value}}. The second channel is named {{scenario.CHANNELS.1.label}} and it has a value of {{scenario.CHANNELS.1.value}}. There are <span vdl-text="=scenario.entities.CHANNELS.length"></span> channels. The first channel is named <span vdl-text="=scenario.entities.CHANNELS[0].label"></span> and it has a value of <span vdl-text="=scenario.entities.CHANNELS[0].value"></span>. The second channel is named <span vdl-text="=scenario.entities.CHANNELS[1].label"></span> and it has a value of <span vdl-text="=scenario.entities.CHANNELS[1].value"></span>.
Example 3
<section repeat="s in scenarios"> Scenario results for {{s.name}}: ... </section> <vdl-row vdl-repeat="=sc in scenarios"> Scenario results for <span vdl-text="=sc.props.name"></span> … </vdl-row>