I have data handed to me by the server.
I do not want the container <p>
to be present if there is no data item. But there could be several data items or 1 data item, if any exist I need a <p>
wrapper.
Ideally, I am looking for some kind of #ifor
helper which will accept any number of arguments. Is this possible?
{{#ifor firstname||lastname||nickname||age}}
<p>
{{#if firstname}}
<span class="firtname">{{firstname}}</span>
{{/if}}
{{#if lastname}}
{{lastname}}
{{/if}}
{{#if age}}
Age: {{age}}
{{/if}}
{{#if nickname}}
- ( {{type}} )
{{/if}}
</p>
{{/if}}