X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Ftemplates%2Ffacet.handlebars;fp=src%2Ftemplates%2Ffacet.handlebars;h=7a4eedf5400c1f3a93d74dcd47d73dca99c6fa7f;hp=0000000000000000000000000000000000000000;hb=36721667730b5d8aae5b6df304f69d96f2c1d21d;hpb=1278919858f8ba395d1f899f30e78a98e0c529ba diff --git a/src/templates/facet.handlebars b/src/templates/facet.handlebars new file mode 100644 index 0000000..7a4eedf --- /dev/null +++ b/src/templates/facet.handlebars @@ -0,0 +1,18 @@ +{{! +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 + field - for the xtargets facet ONLY, the opaque identifier of the target +}} + +
{{caption}}
+{{#each terms}} +
+ {{term}} {{count}} +
+{{/each}}