Display product collection in Shopify

Here is how to display a product collection in a template.

<ul>
{% for product in collections.all.products %}
<li><a href="{{ product.url}}">{{ product.title}}</a>
{% endfor %}
</ul>

Save it as collection-product-list.liquid.