summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
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}}