[]Function sprig::strings::split

pub fn split(args: &[Value]) -> Result<Value, String>

Golang's strings.Split, but as split SEP STRING. The results are returned as a map with the indexes set to _N, where N is an integer starting from 0. Use it like this: {{$v := "foo/bar/baz" | split "/"}}{{$v._0}} (Prints foo)