aboutsummaryrefslogtreecommitdiff
path: root/docs/templates.md
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-22 15:21:38 +0100
committerpraschke <stel@comfy.monster>2023-10-22 19:13:54 +0100
commitf88bded2f05b440a8aa7beb980d8c5d76b150011 (patch)
tree32e8ed18f9915af1bb6bcd525896a81d1605919e /docs/templates.md
parent3b886960050e9c41071e032b0cf92d0d5ab547f5 (diff)
docs: note changes to custom templates in the readme
Diffstat (limited to 'docs/templates.md')
-rw-r--r--docs/templates.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/templates.md b/docs/templates.md
index dcdf9d1b..030ca3d2 100644
--- a/docs/templates.md
+++ b/docs/templates.md
@@ -235,9 +235,9 @@ Creates a set of all unique tags for the definition and returns a text represent
</details>
-### `eachUpTo`
+### `#eachUpTo`
-Similar to the built-in `each` function, but iterates up to a maximum count.
+Similar to the built-in `#each` function, but iterates up to a maximum count.
If the iterable is falsy or empty, the `else` condition will be used.
<details>
@@ -314,7 +314,7 @@ If an unknown operator is specified, the `undefined` value is returned.
<details>
<summary>Syntax:</summary>
- <code>{{#op <i>operator</i> <i>operand1</i> <i>[operand2]</i> <i>[operand3]</i>}}{{/op}}</code>
+ <code>{{op <i>operator</i> <i>operand1</i> <i>[operand2]</i> <i>[operand3]</i>}}</code>
* _`operator`_ <br>
One of the unary, binary, or ternary operators.
@@ -329,7 +329,7 @@ If an unknown operator is specified, the `undefined` value is returned.
<summary>Example:</summary>
```handlebars
- {{#if (op "===" value1 value2)}}Values are equal{{/op~}}<br>
+ {{#if (op "===" value1 value2)}}Values are equal{{/if~}}<br>
{{~#op "-" value1}}{{/op~}}<br>
{{~op "?:" value1 "a" "b"}}
```
@@ -399,7 +399,7 @@ Assigns a value to the custom state stack.
</details>
-### `scope`
+### `#scope`
Pushes a new variable scope to the custom state stack.
Variable assignments are applied to the most recent scope,
@@ -538,7 +538,7 @@ Returns an array of the mora for a kana string.
### `typeof`
-Returns the type of a value.
+Returns the type of a value. Use of `#typeof` in the block form may be nonportable.
<details>
<summary>Syntax:</summary>