From 50506ebeac7af1da739385fa77767bc004b8ddbd Mon Sep 17 00:00:00 2001 From: Robert Basic Date: Mon, 28 Mar 2016 09:27:29 +0200 Subject: [PATCH] docs: Document the split function Fixes #1997 --- docs/content/templates/functions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index ef576bb60..2b9069af7 100644 --- 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`.