mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-02 07:38:46 -05:00
548 B
548 B
title | description | categories | menu | keywords | signature | relatedfuncs | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
split | Returns a slice of strings by splitting STRING by DELIM. |
|
|
|
|
Examples:
{{ split "tag1,tag2,tag3" "," }} → ["tag1", "tag2", "tag3"]
{{ split "abc" "" }} → ["a", "b", "c"]
{{% note %}}
split
essentially does the opposite of delimit. While split
creates a slice from a string, delimit
creates a string from a slice.
{{% /note %}}