aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
blob: b52f29f508d3d6734df3fac35b474858294c4f1a (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
30
31
32
33
<div class="definition">
    <div class="kanji-info kanji-glyph">{{character}}</div>

    <dl class="kanji-info">
        {{#if glossary}}
        <dt>Meanings</dt>
        <dd>
            {{#each glossary}}
            {{.}}{{#unless @last}}, {{/unless}}
            {{/each}}
        </dd>
        {{/if}}

        {{#if kunyomi}}
        <dt>Kunyomi</dt>
        <dd>
            {{#each kunyomi}}
            {{.}}{{#unless @last}}, {{/unless}}
            {{/each}}
        </dd>
        {{/if}}

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