-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variable inside an include tag cause an exception #14
Comments
So, I have made some modification in my code to achieve this, feel free to comment this. Now you can use tags like this (where a string not inside a " or ' is considered as a variable): Previously u could used this line to render a page: So the diffs: (sorry I don't know which tag I should use in comments to display the diffs properly) Note: the getFileSystem() method is there for a different purpose, but since it doesn't hurt anything I'm just left here.
This one is here for backward compatibility.
|
I have created a fork for this (unit tests also included): https://github.com/chros73/php-liquid |
Hi!
First of all thank you for your work!
I tried to used a variable (name of the template file) inside the include tag, but it throws an exception.
{% assign foo = 'builder' %}
{% include foo %}
{% include {{ foo }} %}
Of course this is working:
{% include 'builder' %}
I know that there is a block tag for this kind of operation, but I'd like to use the include tag instead (it would be a nice feature).
Thanks!
Krisz
The text was updated successfully, but these errors were encountered: