Modifier: pad

Pad an array to a given number of items with a value. By default the value is null, but you can specify it as the second parameter.

  - jack daniels
  - bacon strips
{{ epic_meal_time pad="4:bacon strips" }}
    {{ value }}
{{ /epic_meal_time }}
jack daniels
bacon strips
bacon strips
bacon strips

Additional Reading

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

Last modified on August 22, 2018