<!--
    @parameters: mode; id, item, attr, loc
-->

<index:>
    <view name="-{{@mode}}" inherit />


<-text:>
    {{each subitems as #subitem, #i}}
        {{unless #i == 0 || attr.id == 'name'}}, {{/}}
        <view name="item" item="{{#subitem}}" entity="{{attr.entity}}" inherit />
    {{else}}
        -
    {{/each}}


<-html:>
    {{each subitems as #subitem, #i}}
        {{unless #i == 0}}
            {{if attr.id == 'name'}}
                <span>&nbsp;</span>
            {{else}}
                <s