reggi / shopify

Just a place to track issues and feature requests that I have for shopify
3 stars 1 forks source link

Ability to pass multiple variables into an include. #4

Open reggi opened 9 years ago

reggi commented 9 years ago

Something like this works.

{% include "filter-next-month" with "July" %}

But if I wanted to do something that included two variables I can't do it.

{% include "filter-concat" with "Foo" "Bar" %}
{% include "filter-concat" with "Foo" with "Bar" %}
{% include "filter-concat" with "Foo" and "Bar" %}

This should simply just make the variable filter-next-theme within the include an array that includes all the variables passed to it.

For instance the hack "function" in issue https://github.com/reggi/shopify/issues/3 needs two params one's an array of tags and one is the specific matched string. It would be a joy to write this:

{% include "filter-tag-key" with article and "author_url" %}