diff options
Diffstat (limited to 'util/tmpl')
-rw-r--r-- | util/tmpl/defs.html | 7 | ||||
-rw-r--r-- | util/tmpl/term.html | 3 |
2 files changed, 5 insertions, 5 deletions
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}} <div class="yomichan-def"> - <div class="yomichan-def-expression">{{expression}}</div> - {{#if reading}} - <div class="yomichan-def-reading">{{reading}}</div> - {{/if}} - <div class="yomichan-def-glossary">{{glossary}}</div> + {{> term.html}} + {{#unless @last}}<br>{{/unless}} </div> {{/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 @@ +<div class="yomichan-def-expression">{{expression}}</div> +{{#if reading}}<div class="yomichan-def-reading">{{reading}}</div>{{/if}} +<div class="yomichan-def-glossary">{{glossary}}</div> |