{% macro options(items, prefix) %}
  {% import _self as form %}
  {% for item in items %}
    <option value="{{ item.url }}">{{ prefix }} {{ item.title }}</option>
    {{ item.below ? form.options(item.below, prefix ~ '--') }}
  {% endfor %}
{% endmacro %}
/* No context defined. */
  • Handle: @form-select-options
  • Preview:
  • Filesystem Path: components/00-base/03-macros/form-select-options.twig

No notes defined.