# Examples

# Vendors

# List all vendors

  {% if vendors.any? %} // Check if there are any Vendors added to the store
    <ul>
    {% for vendor in vendors %} // For loop to query all vendors that are available
      <li>
        {{ vendor.name }} // Display a vendor by a name
      </li>
    {% endfor %}
    </ul>
  {% endif %}
<ul>
  <li>Brand #1</li>
  <li>Brand #2</li>
  <li>Brand #3</li>
</ul>

# Multi level dropdown navigation

{% if menu.links.any? or menu.children.any? %}
<ul>
  {% assign collection = menu.root_links %}
  {% if menu.children.any? %}
    {% assign collection = menu.children %}
  {% endif %}

  {% for link in collection %}
  <li>
    {% if link.url %}
      <a href="{{link.url}}">
        {{link.name}}
        {% if link.children.any? %}<i class="icon-arrow-dark"></i>{% endif %}
      </a>
    {% else %}
      <span>
        {{link.name}}
        {% if link.children.any? %}<i class="icon-arrow-dark"></i>{% endif %}
      </span>
    {% endif %}

    {% if link.children.any? %}
      {% include 'menu' with link %}
    {% endif %}

  </li>
  {% endfor %}
</ul>
{% endif %}