mardi 1 mars 2016

Proper syntax for Handlebars expression within block helper. Specifically {{#link-to}} [duplicate]

This question already has an answer here:

What is the proper syntax to use an objects property as the 'link-to' or other value in a handlebars expression? For example, I want to use {{page.slug}}

<ul class='main-menu'>
{{#each model as |page|}}
    <li>
        {{#link-to 'HERE'}}
            {{page.title}}
        {{/link-to}}
    </li>
{{/each}}
</ul>

Also, this may be a hacky way of making a menu, but is more about how I came to the question.




Aucun commentaire:

Enregistrer un commentaire