1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

docs: Document the split function

Fixes #1997
This commit is contained in:
Robert Basic
2016-03-28 09:27:29 +02:00
committed by digitalcraftsman
parent 4c95b70020
commit 50506ebeac

View 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`.