> Am 02.12.2016 um 15:56 schrieb Hilaire :
>
> Hello,
>
> While iterating within a Mustache section is it possible to refer to a
> tag defined out of the list.
>
> For example, is it possible to do so:
>
> templateString := 'A list of numbers
> {{#list}}
> Number {{label}} : {{number}} <= #label in section
> {{/list}}'.
>
> context := {
> 'label' -> 'fine.
> 'list' -> {
> { 'number' -> 1 } asDictionary.
> { 'number' -> 2 } asDictionary.
>}
> } asDictionary
>
>
> to get output as:
> 'A list of numbers
> Number fine: 1
> Number fine: 2
> '
>
> So far in my attempt the #label tag is not processed.
>
> Am I interpreting something wrongly?
>
No, what you want is not possible. To achieve it you should copy label into the
elements of the list section.
Norbert
> Thanks
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>