From: Robert Basic Date: Mon, 28 Mar 2016 07:27:29 +0000 (+0200) Subject: docs: Document the split function X-Git-Tag: v0.16~149 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=50506ebe;p=brevno-suite%2Fhugo docs: Document the split function Fixes #1997 --- diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index ef576bb6..2b9069af 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`.