sebastienros/fluid

How to use dynamicPartials?

Closed this issue · 1 comments

Do we have the option of using dynamicPartials?

like this

{% render {{partial}} with item %}

where partial is a variable.

Thanks in advance.

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.