mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-05 19:27:23 -04:00
25 lines
462 B
Markdown
25 lines
462 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]
|
|
tags: [strings]
|
|
ns:
|
|
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"]
|
|
|
|
|