commit 50506ebeac7af1da739385fa77767bc004b8ddbd
parent 4c95b700208286687e40a367eb3bc2446eca6912
Author: Robert Basic <robertbasic.com@gmail.com>
Date: Mon, 28 Mar 2016 09:27:29 +0200
docs: Document the split function
Fixes #1997
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md
@@ -559,6 +559,14 @@ e.g.
* `{{slicestr "BatMan" 3}}` → "Man"
* `{{slicestr "BatMan" 0 3}}` → "Bat"
+### split
+
+Split a string into substrings separated by a delimiter.
+
+e.g.
+
+* `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]
+
### string
Creates a `string`.