-
Notifications
You must be signed in to change notification settings - Fork 641
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
How to escape include #695
Comments
That is the way you should do it, but currently there is a bug with the |
thanks! is there any way to get around it now? |
Not any easy way that I know of :/ Block |
I released 2.4.0, so you should be able to work around this with something like:
(though the use of |
thanks for fast reply!
output is this (as expeced)
but with your example it does not work. btw i work with grunt plugin nunjucks-2-html and it does not throw any error... it just does not output anything |
Sorry, I'm not sure what's going on then. Did you upgrade to the just-released nunjucks 2.4.0? If so, my example should work; we have tests for includes within a block-set. I haven't used the grunt plugin you're using. |
yes, i have upgraded, i have nunjucks 2.4.0 in node_modules folder ... when i tried that code before it has shown some error, after upgrade it did not output anything |
Hi,
is it be possible to somehow escape HTML of included partial?
I tried this but there is no output
{% filter escape %} {% include "item.html" %} {% endfilter %}
is there any way to do it?
Thanks!
The text was updated successfully, but these errors were encountered: