diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-12 11:19:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 11:19:43 +0900 |
commit | 47b4d79e646a990699a1a4ca1da559a4aeec1c91 (patch) | |
tree | c33f61ba85354f18c68d4a054baa30ff0c41c153 /docs/templates.md | |
parent | 9162d950eb2b3aa0339d95a98a60be89b8315f26 (diff) | |
parent | d06029ea8c4244f40f9ddfeec5154f9ef2a4c053 (diff) |
Merge branch 'master' into offscreen-db
Diffstat (limited to 'docs/templates.md')
-rw-r--r-- | docs/templates.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/templates.md b/docs/templates.md index e75e4635..18274ed5 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -2,7 +2,7 @@ ## Helpers -Yomichan supports several custom Handlebars helpers for rendering templates. +Yomitan supports several custom Handlebars helpers for rendering templates. The source code for these templates can be found [here](../ext/js/templates/sandbox/anki-template-renderer.js). @@ -586,12 +586,12 @@ Joins the arguments to a single string with a separator, flattening any argument ```handlebars {{set "index" 32~}} - {{~join "_" "yomichan" (get "index") "value"}} + {{~join "_" "yomitan" (get "index") "value"}} ``` Output: ```html - yomichan_32_value + yomitan_32_value ``` </details> @@ -613,12 +613,12 @@ Joins the arguments to a single string, without flattening arguments that are ar ```handlebars {{set "index" 32~}} - {{~concat "yomichan_" (get "index") "_value"}} + {{~concat "yomitan_" (get "index") "_value"}} ``` Output: ```html - yomichan_32_value + yomitan_32_value ``` </details> @@ -727,11 +727,11 @@ These functions are used together in order to request media and other types of o Output: ```html - The audio file name is: yomichan_audio_にほんご_日本語.mp3 + The audio file name is: yomitan_audio_にほんご_日本語.mp3 - The screenshot file name is: yomichan_browser_screenshot_にほんご_日本語.png + The screenshot file name is: yomitan_browser_screenshot_にほんご_日本語.png - The clipboard image file name is: yomichan_clipboard_image_にほんご_日本語.png + The clipboard image file name is: yomitan_clipboard_image_にほんご_日本語.png The clipboard text is: This is the clipboard text @@ -741,7 +741,7 @@ These functions are used together in order to request media and other types of o This is an example of text with generated furigana: <ruby>日本語<rt>にほんご</rt></ruby> - The remapped file name for image.png is: yomichan_dictionary_media_1_にほんご_日本語.png + The remapped file name for image.png is: yomitan_dictionary_media_1_にほんご_日本語.png ``` </details> |