Saturday 10 June 2017

Handlebars syntax

currently trying to get into handlebars. Firstly does anyone have any suggestions on where I should go to learn the handlebars syntax. Secondly could anyone help me with how to translate this into handlebars.

<li>
        <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Categories <span class="caret"></span></a>
        <ul class="dropdown-menu">
          <% for (var i = 0; i < categories.length; i++) { %>
            <li><a href="/products/<%= categories[i]._id %>"> <%= categories[i].name %></a></li>
          <% } %>
        </ul>
      </li>



via Troy

No comments:

Post a Comment