commit 58a183c330539673590dff91190a807122b706db
parent 75ba84acbf8469667cb41efa89b81526a18d6a0a
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 16 Jan 2016 00:06:32 +0100
Docs: Add doc for string and int
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md
@@ -357,6 +357,15 @@ e.g.
</tbody>
</table>
+## Numbers
+
+### int
+
+Creates a `int`.
+
+e.g.
+
+* `{{int "123" }}` → 123
## Strings
@@ -488,6 +497,14 @@ e.g.
* `{{slicestr "BatMan" 3}}` → "Man"
* `{{slicestr "BatMan" 0 3}}` → "Bat"
+### string
+
+Creates a `string`.
+
+e.g.
+
+* `{{string "BatMan"}}` → "BatMan"
+
### substr
Extracts parts of a string, beginning at the character at the specified