php-liquid
php-liquid copied to clipboard
Dynamic Include
Hi,
It's possible create a include dynamic with a custom variable? For example in loop:
{% for item in files %}
{% include item.file %}
{% endfor %}
Tks.
It seems like this is possible in the stock Liquid, or in the Jekyll, at very least:
{% include {{ my_variable }} %}
I haven't checked yet if we are handling this case in PHP Liquid.
In PHP Liquid does`t work. =(
nothing yet?
It doesn't seem like there was any volunteer.
Hello, I really need this:
{% include {{ my_variable }} %}
There seems to be a solution made for this fork: https://github.com/harrydeluxe/php-liquid/issues/14
Can someone make it happen? Much appreciated
Nice find! I've made a PR for time being, but it'll require more work.
Any news for this?
I wonder if you can try you hand with this job. What do you think?
My hands are tied at least until autumn.
I have no idea what to do
I'd start with taking tests from #125, and then proceed with other changes, except for static variables.
I will take a look at this!
Hi - is there any update on a fix for this?
I'm here to review any PR with this feature.
any news after 2 years?