I'm only a couple days into learning assemble and I am attempting to create a table of contents using a partial.
toc.hbs
<ul >
{{#each pages }}
<li>
<a href ="{{assets }}/{{basename }}.html" >{{data.title }}</a >
</li >
{{/each }}
</ul >
layout.hbs
<div class="row">
<div class="col-sm-3">
{{> toc}}
</div>
<div class="col-sm-9">
{{> body}}
</div>
</div>
This works fine except I'd like to set class="active" on the current page.
Q: Is there a way to easily do this using the built-in functionality of assemble & handlebars? Do I need to use a helper like ifCond?