aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-17 18:20:39 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-17 18:20:39 -0700
commit6f45cc287112030387f33169c762ee9448c0c65c (patch)
tree6c6effd9305e14569b5222c6a58f00724c6029fc /util
parentf079db0471424a873f22315c7911571d467e97ad (diff)
Splitting out header and footer templates
Diffstat (limited to 'util')
-rw-r--r--util/tmpl/footer.html3
-rw-r--r--util/tmpl/header.html (renamed from util/tmpl/defs.html)10
-rw-r--r--util/tmpl/term-list.html7
3 files changed, 10 insertions, 10 deletions
diff --git a/util/tmpl/footer.html b/util/tmpl/footer.html
new file mode 100644
index 00000000..7c2cac6b
--- /dev/null
+++ b/util/tmpl/footer.html
@@ -0,0 +1,3 @@
+ <script src="{{root}}/js/popup.js"></script>
+ </body>
+</html>
diff --git a/util/tmpl/defs.html b/util/tmpl/header.html
index 3f37d8bd..b7577dd5 100644
--- a/util/tmpl/defs.html
+++ b/util/tmpl/header.html
@@ -9,13 +9,3 @@
<div class="dictionary">
<a href="javascript:setActiveDict('edict');">単</a><a href="javascript:setActiveDict('enamdict')">名</a><a href="javascript:setActiveDict('kanjidic');">漢</a>
</div>
-
- {{#each defs}}
- <div class="definition">
- {{> term.html}}
- </div>
- {{/each}}
-
- <script src="{{root}}/js/popup.js"></script>
- </body>
-</html>
diff --git a/util/tmpl/term-list.html b/util/tmpl/term-list.html
new file mode 100644
index 00000000..9e55a80e
--- /dev/null
+++ b/util/tmpl/term-list.html
@@ -0,0 +1,7 @@
+{{> header.html}}
+{{#each defs}}
+<div class="definition">
+ {{> term.html}}
+</div>
+{{/each}}
+{{> footer.html}}