mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 16:02:07 -05:00
591 B
591 B
title | description | categories | menu | keywords | signature | relatedfuncs | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
slice | Creates a slice (array) of all passed arguments. |
|
|
|
|
One use case is the concatenation of elements in combination with the delimit
function:
{{< code file="slice.html" >}} {{ $sliceOfStrings := slice "foo" "bar" "buzz" }}
{{ delimit ($sliceOfStrings) ", " }}
{{< /code >}}