Modifier: offset


Offsets the items returned in an array.

playlist:
  - Emancipator
  - Gong Gong
  - Possom Posse
  - Justin Bieber

Use with the pipe syntax to continue chaining in a single tag like so:

{{ playlist | offset:1 | join }}
Gong Gong, Possom Posse, Justin Bieber

Or using the parameter syntax:

{{ playlist offset="1" }}
    <li>{{ value }}</li>
{{ /playlist }}
<li>Gong Gong</li>
<li>Possom Posse</li>
<li>Justin Bieber</li>

Additional Reading

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

Last modified on March 17, 2017