X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws.templates%2FFacet.handlebars;fp=src%2Fmkws.templates%2FFacet.handlebars;h=621c9c195fcab2e78834c5668165ca0027169385;hb=2883bc9d2ba4d8f54280911b4f4e174594d1fde8;hp=0000000000000000000000000000000000000000;hpb=e6d7c4f45f1402aaaa786e69c69a4afef265450b;p=mkws-moved-to-github.git diff --git a/src/mkws.templates/Facet.handlebars b/src/mkws.templates/Facet.handlebars new file mode 100644 index 0000000..621c9c1 --- /dev/null +++ b/src/mkws.templates/Facet.handlebars @@ -0,0 +1,17 @@ +{{! +A facet in the search. + +name - facet identifier, typically English and lowercase +caption - caption for this facet +terms: + term - term name + count - count of items matching in the current search for this team + linkdata - attributes to add to the term element including an onclick handler +}} + +
{{caption}}
+{{#each terms}} +
+ {{term}} {{count}} +
+{{/each}}