Template facets
[mkws-moved-to-github.git] / src / mkws-widget-termlists.templates / Facet.handlebars
1 {{!
2 A facet in the search.
3
4 name - facet identifier, typically English and lowercase
5 caption - caption for this facet
6 terms:
7   term - term name
8   count - count of items matching in the current search for this team
9   linkdata - attributes to add to the term element including an onclick handler
10 }}
11
12 <div class="mkwsFacetTitle">{{caption}}</div>
13 {{#each terms}}
14   <div class="mkwsTerm">
15     <a href="#" {{linkdata}}>{{term}}</a> <span>{{count}}</span>
16   </div>
17 {{/each}}