Using Handlebars.js, I am trying to hide the first element in an array. It would be conditional to an option being true/false.

Can this be done without a helper?

Thanks

Horizontal Menu with > as separator

{{#if options.display-home}}
 <li class="home">{{options.home}}</li>
{{/if}}
/*If display-home true hide initial separator*/

{{#recursive data "menu-breadCrumb"}}
   {{#if Active}}
{{#if ../../block.Options.DisplaySeparator}}
  <li class="separator">{{../../../block.Options.Separator}}}</li>
{{/if}}
{{/recursive}}
Member Avatar for LastMitch

Hide first element in array using Handlebars.js

Are you using platform or MVC or something like Smarty template?

If so what is it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.