aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
blob: d9e7ffcf5cbfb7c307051539e9462e29ed1bbf53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div class="definition">
    <div class="kanji">{{character}}</div>

    <div class="readings">
        <dl>
            {{#if kunyomi}}
            <dt>Kunyomi:</dt>
            {{#each kunyomi}}
            <dd>{{.}}{{#unless @last}}, {{/unless}}</dd>
            {{/each}}
            {{/if}}

            {{#if onyomi}}
            <dt>Onyomi:</dt>
            {{#each onyomi}}
            <dd>{{.}}{{#unless @last}}, {{/unless}}</dd>
            {{/each}}
            {{/if}}
        </dl>
    </div>

    <div class="glossary">
        <ol>
            {{#each glossary}}
            <li><span>{{.}}</span></li>
            {{/each}}
        </ol>
    </div>
</div>