aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-16 11:24:03 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-16 11:24:03 -0700
commit80da71148a4b0607b2ba026588f42554c73e9a25 (patch)
treea8d03a60e884f4292ddfd165aa638edb1a633b0f
parentaa288d524b94cda8bc15db9c40ea4e3dbd0c68db (diff)
Adding better rule output
-rw-r--r--ext/bg/js/templates.js15
-rw-r--r--util/tmpl/term.html6
2 files changed, 13 insertions, 8 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js
index a8889fb7..4e0c9eef 100644
--- a/ext/bg/js/templates.js
+++ b/ext/bg/js/templates.js
@@ -34,21 +34,22 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial
+ container.escapeExpression(((helper = (helper = helpers.expression || (depth0 != null ? depth0.expression : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"expression","hash":{},"data":data}) : helper)))
+ "</div>\n";
},"5":function(container,depth0,helpers,partials,data) {
- var stack1;
+ var stack1, helper, alias1=depth0 != null ? depth0 : {};
return "<div class=\"rules\">\n"
- + ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.rules : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
- + "</div>\n";
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.rules : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " &raquo;\n "
+ + container.escapeExpression(((helper = (helper = helpers.source || (depth0 != null ? depth0.source : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"source","hash":{},"data":data}) : helper)))
+ + "\n</div>\n";
},"6":function(container,depth0,helpers,partials,data) {
var stack1;
return " "
+ container.escapeExpression(container.lambda(depth0, depth0))
- + "\n "
- + ((stack1 = helpers.unless.call(depth0 != null ? depth0 : {},(data && data.last),{"name":"unless","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
- + "\n";
+ + "\n"
+ + ((stack1 = helpers.unless.call(depth0 != null ? depth0 : {},(data && data.last),{"name":"unless","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
},"7":function(container,depth0,helpers,partials,data) {
- return " &laquo; ";
+ return " &raquo;\n";
},"9":function(container,depth0,helpers,partials,data) {
return " <li><span>"
+ container.escapeExpression(container.lambda(depth0, depth0))
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index 62183e31..1aa12d9e 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -8,8 +8,12 @@
<div class="rules">
{{#each rules}}
{{.}}
- {{#unless @last}} &laquo; {{/unless}}
+ {{#unless @last}}
+ &raquo;
+ {{/unless}}
{{/each}}
+ &raquo;
+ {{source}}
</div>
{{/if}}