making navItems customisable too

This commit is contained in:
Sacha Greif 2014-08-13 17:12:52 +09:00
parent 67bb61ee75
commit c0e1d8e39c
2 changed files with 4 additions and 1 deletions

View file

@ -16,7 +16,7 @@
<ul class="nav site-nav desktop-nav has-dropdown">
{{#each navItems}}
<li>
{{> UI.dynamic template=this}}
{{> UI.dynamic template=getTemplate}}
</li>
{{/each}}
</ul>

View file

@ -2,6 +2,9 @@ Template[getTemplate('nav')].helpers({
navItems: function () {
return navItems;
},
getTemplate: function () {
return getTemplate(this);
},
userMenu: function () {
return getTemplate('userMenu');
},