docs: Document the split function
authorRobert Basic <robertbasic.com@gmail.com>
Mon, 28 Mar 2016 07:27:29 +0000 (09:27 +0200)
committerdigitalcraftsman <digitalcraftsman@protonmail.com>
Mon, 28 Mar 2016 13:58:41 +0000 (15:58 +0200)
Fixes #1997

docs/content/templates/functions.md

index ef576bb605b61fb0c41f90da43f97bb250d40261..2b9069af79bf5a432ab3e9c6317ceb77d36e1d75 100644 (file)
@@ -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`.