From 14ecb8f32831ef4747adef1de1af658dc7d4b298 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 8 May 2016 12:01:43 -0700 Subject: File reorg --- tmpl/footer.html | 3 +++ tmpl/header.html | 14 ++++++++++++++ tmpl/kanji-link.html | 1 + tmpl/kanji-list.html | 5 +++++ tmpl/kanji.html | 43 +++++++++++++++++++++++++++++++++++++++++++ tmpl/term-list.html | 5 +++++ tmpl/term.html | 40 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 111 insertions(+) create mode 100644 tmpl/footer.html create mode 100644 tmpl/header.html create mode 100644 tmpl/kanji-link.html create mode 100644 tmpl/kanji-list.html create mode 100644 tmpl/kanji.html create mode 100644 tmpl/term-list.html create mode 100644 tmpl/term.html (limited to 'tmpl') diff --git a/tmpl/footer.html b/tmpl/footer.html new file mode 100644 index 00000000..3840600f --- /dev/null +++ b/tmpl/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/tmpl/header.html b/tmpl/header.html new file mode 100644 index 00000000..2256b08a --- /dev/null +++ b/tmpl/header.html @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/tmpl/kanji-link.html b/tmpl/kanji-link.html new file mode 100644 index 00000000..f4f8dc69 --- /dev/null +++ b/tmpl/kanji-link.html @@ -0,0 +1 @@ +{{kanji}} diff --git a/tmpl/kanji-list.html b/tmpl/kanji-list.html new file mode 100644 index 00000000..b5d0b627 --- /dev/null +++ b/tmpl/kanji-list.html @@ -0,0 +1,5 @@ +{{> header.html}} +{{#each defs}} +{{> kanji.html root=../root options=../options sequence=../sequence}} +{{/each}} +{{> footer.html}} diff --git a/tmpl/kanji.html b/tmpl/kanji.html new file mode 100644 index 00000000..7a5affb7 --- /dev/null +++ b/tmpl/kanji.html @@ -0,0 +1,43 @@ +
+ {{#with options}} + {{#if enableAnkiConnect}} +
+ +
+ {{/if}} + {{/with}} + +
{{character}}
+ +
+
+ {{#if glossary}} +
Meanings
+
+ {{#each glossary}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} +
+ {{/if}} + + {{#if kunyomi}} +
Kunyomi
+
+ {{#each kunyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} +
+ {{/if}} + + {{#if onyomi}} +
Onyomi
+
+ {{#each onyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} +
+ {{/if}} +
+
+
+ diff --git a/tmpl/term-list.html b/tmpl/term-list.html new file mode 100644 index 00000000..5581b679 --- /dev/null +++ b/tmpl/term-list.html @@ -0,0 +1,5 @@ +{{> header.html}} +{{#each defs}} +{{> term.html root=../root options=../options sequence=../sequence}} +{{/each}} +{{> footer.html}} diff --git a/tmpl/term.html b/tmpl/term.html new file mode 100644 index 00000000..216ccf0a --- /dev/null +++ b/tmpl/term.html @@ -0,0 +1,40 @@ +
+ {{#with options}} + {{#if enableAnkiConnect}} +
+ + +
+ {{/if}} + {{/with}} + + {{#if reading}} +
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}{{reading}}
+ {{else}} +
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
+ {{/if}} + + {{#if rules}} +
+ {{#each rules}} + {{.}} {{#unless @last}}«{{/unless}} + {{/each}} +
+ {{/if}} + + {{#if tags}} +
+ {{#each tags}} + {{name}} + {{/each}} +
+ {{/if}} + +
+
    + {{#each glossary}} +
  1. {{.}}
  2. + {{/each}} +
+
+
-- cgit v1.2.3