Files
hugoDocs/content/functions/split.md
T
Bjørn Erik Pedersen 4e0bca2b1e Remove the needsexamples construct
We need to rework the whole template func docs and, while a good idea, this does not fit into that.
2017-07-16 15:13:35 +02:00

27 lines
499 B
Markdown

---
title: split
# linktitle: split
description: splits a string into substrings separated by a delimiter
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
signature: ["split STRING DELIM"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
`split` splits a string into substrings separated by a delimiter.
* `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]