Learn

option_list

Turns a YAML list into an option-list

Sample Usage

{{ categories|option_list }}

If {{ categories }} looks like this:

categories:
  - egg
  - bird
  - house

The output would look like this: egg|bird|house. This is handy for use with conditions parameters.

Parameters

This modifier has no parameters.

This article was last updated on March 30th, 2016. Find an error? Please let us know!