From a8c7a8602fff55df8279b9f56dfece875005a7fa Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 28 Mar 2016 19:44:28 -0700 Subject: Use partials --- util/tmpl/defs.html | 7 ++----- util/tmpl/term.html | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 util/tmpl/term.html (limited to 'util') diff --git a/util/tmpl/defs.html b/util/tmpl/defs.html index 553a8c62..2fcc4ea9 100644 --- a/util/tmpl/defs.html +++ b/util/tmpl/defs.html @@ -1,9 +1,6 @@ {{#each defs}}
-
{{expression}}
- {{#if reading}} -
{{reading}}
- {{/if}} -
{{glossary}}
+ {{> term.html}} + {{#unless @last}}
{{/unless}}
{{/each}} diff --git a/util/tmpl/term.html b/util/tmpl/term.html new file mode 100644 index 00000000..e46e9d5b --- /dev/null +++ b/util/tmpl/term.html @@ -0,0 +1,3 @@ +
{{expression}}
+{{#if reading}}
{{reading}}
{{/if}} +
{{glossary}}
-- cgit v1.2.3