split

Splits a string and returns an array

1
2
3
{{#split [value] [separator]}}
...
{{/split}}
Example
format JSON XML
HTML
1
2
3
{
"Conveyances": "Car,Rocket,Plane,Ship"
}
Code
1
2
3
{{#split Conveyances ","}}
Transportation: {{this}}<br/>
{{/split}}
Result
HTML
1
<Conveyances>Car,Rocket,Plane,Ship</Conveyances>
Code
1
2
3
{{#split Conveyances ","}}
Transportation: {{this}}<br/>
{{/split}}
Result