Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2015 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a9feb6b770ee8ca8f26d to your computer and use it in GitHub Desktop.
Save anonymous/a9feb6b770ee8ca8f26d to your computer and use it in GitHub Desktop.
The outer li needs active if any of the sub-items are active
<li class="has-sub active">
<a>
<span>Things</span>
</a>
<ul class="sub-menu">
{{#link-to 'thing.one' tagName='li'}}
<a>One</a>
{{/link-to}}
{{#link-to 'thing.two' tagName='li'}}
<a>Two</a>
{{/link-to}}
</ul>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment