diff options
Diffstat (limited to 'docs/templates.md')
-rw-r--r-- | docs/templates.md | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/docs/templates.md b/docs/templates.md index 1c9081d2..7425bc4a 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -44,21 +44,27 @@ This function can be helpful for debugging values when creating templates. ### `furigana` -Converts a definition to its furigana representation. +Converts a definition or expression/reading pair to its furigana representation. <details> <summary>Syntax:</summary> - <code>{{#furigana}}<i><definition></i>{{/furigana}}</code> + <code>{{#furigana}}<i><definition></i>{{/furigana}}</code><br> + <code>{{#furigana <i>expression</i> <i>reading</i>}}{{/furigana}}</code><br> * _`definition`_ <br> The definition to convert. + * _`expression`_ <br> + The expression to convert. + * _`reading`_ <br> + The reading to convert. </details> <details> <summary>Example:</summary> ```handlebars {{#furigana}}{{.}}{{/furigana}} + {{#furigana "読む" "よむ"}}{{/furigana}} ``` Output: @@ -73,21 +79,27 @@ Converts a definition to its furigana representation. ### `furiganaPlain` -Converts a definition to its simplified furigana representation. +Converts a definition or expression/reading pair to its simplified furigana representation. <details> <summary>Syntax:</summary> <code>{{#furiganaPlain}}<i><definition></i>{{/furigana}}</code> + <code>{{#furiganaPlain <i>expression</i> <i>reading</i>}}{{/furiganaPlain}}</code><br> * _`definition`_ <br> The definition to convert. + * _`expression`_ <br> + The expression to convert. + * _`reading`_ <br> + The reading to convert. </details> <details> <summary>Example:</summary> ```handlebars {{~#furiganaPlain~}}{{.}}{{~/furiganaPlain~}} + {{#furiganaPlain "読む" "よむ"}}{{/furiganaPlain}} ``` Output: |