Index: utils/tests/template/top_searches_css.tmpl |
diff --git a/utils/tests/template/top_searches_css.tmpl b/utils/tests/template/top_searches_css.tmpl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ad7a8318d6d4aeb0b9355b02b5e38f84e8f185f7 |
--- /dev/null |
+++ b/utils/tests/template/top_searches_css.tmpl |
@@ -0,0 +1,49 @@ |
+template TopSearches(Person person, var searches) { |
+ css { |
+ .metrics-item { |
+ font-family: arial; |
+ background-color: lightgray; |
+ margin-left: 10px; |
+ border-bottom: 1px solid white; |
+ } |
+ .total-hits { |
+ position: absolute; |
+ left: 100px; |
+ } |
+ } |
+ <div> |
+ ${#with person} |
+ <div> |
+ <span>${name}, </span> |
+ <span>age = </span> |
+ <span>${age}</span> |
+ </div> |
+ <div> |
+ ${#each searches} |
+ <div>query=${query}, rank=${rank}, total=${total}</div> |
+ ${#each searches.metrics} |
+ <div class="metrics-item"> |
+ <span>${country}</span> |
+ <span class="total-hits">${quantity}</span> |
+ </div> |
+ ${/each} |
+ ${/each} |
+ </div> |
+ ${/with} |
+ </div> |
+} |
+ |
+template NameEntry(String name, int age) { |
+ css { |
+ .name-item { |
+ font-size: 18pt; |
+ font-weight: bold; |
+ } |
+ } |
+ <div var=topDiv class="name-item" attr="test" attr1=test1 attr2='test2' attr3=test3> |
+ <span var=spanElem>${name}</span> |
+ <span> - </span> |
+ <span>${age}</span> |
+ </div> |
+} |
+ |