How to use dynamicPartials?
Closed this issue · 1 comments
last-Programmer commented
Do we have the option of using dynamicPartials?
like this
{% render {{partial}} with item %}
where partial is a variable.
Thanks in advance.
sebastienros commented
I believe you can do this with the {% include %}
tag, since render
was introduced to prevent that. This was done in Shopify to allow for caching the templates. But then remove the {{ ... }}
and just use the variable name directly.