From 58a183c330539673590dff91190a807122b706db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 16 Jan 2016 00:06:32 +0100 Subject: [PATCH] Docs: Add doc for string and int --- docs/content/templates/functions.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index 26041ea8..62228632 100644 --- a/docs/content/templates/functions.md +++ b/docs/content/templates/functions.md @@ -357,6 +357,15 @@ e.g. +## 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 -- 2.30.2