Index: utils/tests/template/top_searches.tmpl |
diff --git a/utils/tests/template/top_searches.tmpl b/utils/tests/template/top_searches.tmpl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8004f282d34a9a95877daec16bec4ce4b52ece39 |
--- /dev/null |
+++ b/utils/tests/template/top_searches.tmpl |
@@ -0,0 +1,18 @@ |
+template TopSearches(Person person, var searches) { |
+ <div> |
+ ${#with person} |
+ <div> |
+ <span>${name}, </span> |
+ <span>age = </span> |
+ <span>${age}</span> |
+ </div> |
+ ${#each searches} |
+ <div> |
+ <span style="margin-left: 10px;">query=${query}</span> |
+ <span style="margin-left: 20px;">hits=${total}</span> |
+ </div> |
+ ${/each} |
+ ${/with} |
+ </div> |
+} |
+ |