Modifier: ol


Turn an array into an HTML ordered list element.

YAML
food:
  - sushi
  - broccoli
  - kale
Template
{{ food | ol }}
Output
<ol>
  <li>sushi</li>
  <li>broccoli</li>
  <li>kale</dd>
</ol>

Additional Reading

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

Last modified on March 31, 2016