Modifier: explode


Breaks a string into an array of strings split on a given delimiter.

places: Scotland, England, Switzerland, Italy
{{ places | explode:, | ul }}
<ul>
  <li>Scotland</li>
  <li>England</li>
  <li>Switzerland</li>
  <li>Italy</li>
</ul>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on August 18, 2017