From 5dc0deb51239b2ed0ab04f3e232e3ceb6e93ea03 Mon Sep 17 00:00:00 2001 From: praschke Date: Mon, 16 Oct 2023 23:29:17 +0100 Subject: docs: join and concat --- docs/templates.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/templates.md b/docs/templates.md index f5eeb95e..3ae8c58e 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -574,7 +574,7 @@ Joins the arguments to a single string with a separator, flattening any argument
Syntax: - {{#join separator value1 value2 valueN...}}{{/join}}
+ {{join separator value1 value2 valueN...}}
* _`separator`_
The separator string to use between values. @@ -585,8 +585,8 @@ Joins the arguments to a single string with a separator, flattening any argument Example: ```handlebars - {{#set "index" 32}}{{/set~}} - {{~#join "_" "yomichan" (get "index") "value"}}{{/join}} + {{set "index" 32~}} + {{~join "_" "yomichan" (get "index") "value"}} ``` Output: @@ -603,7 +603,7 @@ Joins the arguments to a single string, without flattening arguments that are ar
Syntax: - {{#concat value1 value1 valueN...}}{{/concat}}
+ {{concat value1 value1 valueN...}}
* _`valueN`_
A value to join into the resulting string @@ -612,8 +612,8 @@ Joins the arguments to a single string, without flattening arguments that are ar Example: ```handlebars - {{#set "index" 32}}{{/set~}} - {{~#concat "yomichan_" (get "index") "_value"}}{{/concat}} + {{set "index" 32~}} + {{~concat "yomichan_" (get "index") "_value"}} ``` Output: -- cgit v1.2.3