diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-05-23 21:27:20 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-05-23 21:27:20 -0700 |
commit | 5de9ac17122002fa8727fd089679394f54af442f (patch) | |
tree | 833fecc8b7de8e5f4d476020eeff024abace1037 /tmpl | |
parent | ac406bdbf0d4b275ed8d1c48e29d0cb69e4d1800 (diff) |
add debug logging
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/kanji.html | 6 | ||||
-rw-r--r-- | tmpl/terms.html | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html index acd79036..a2f78aff 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -50,13 +50,17 @@ <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> {{/if}} </div> + + {{#if debug}} + <pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre> + {{/if}} </div> {{/inline}} {{#if definitions}} {{#each definitions}} {{#unless @first}}<hr>{{/unless}} -{{> kanji addable=../addable source=../source root=../root}} +{{> kanji debug=../debug addable=../addable source=../source root=../root}} {{/each}} {{else}} <p>No results found.</p> diff --git a/tmpl/terms.html b/tmpl/terms.html index dc50efe2..80735974 100644 --- a/tmpl/terms.html +++ b/tmpl/terms.html @@ -59,13 +59,17 @@ {{> definition}} {{/if}} </div> + + {{#if debug}} + <pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre> + {{/if}} </div> {{/inline}} {{#if definitions}} {{#each definitions}} {{#unless @first}}<hr>{{/unless}} -{{> term grouped=../grouped addable=../addable playback=../playback}} +{{> term debug=../debug grouped=../grouped addable=../addable playback=../playback}} {{/each}} {{else}} <p>No results found.</p> |