-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Custom Nunjucks environment w/ autoescape #7
Comments
Done. See https://github.com/pdehaan/11ty-nunjucks-config Also filed 11ty/eleventy#895 since this was trickier than expected. |
@pdehaan when I add a config as in https://github.com/pdehaan/11ty-nunjucks-config, 11ty stops compiling .njk files on change |
@einomi are you saying the custom nunchucks environment works, but the |
@pdehaan yeah, it looks like it doesn't recompile the .njk files when I edit them. However, browsersync reloads the page but the content is not updated on it. |
@einomi Interesting, if that's still happening in latest 0.12.1 (i think my sample repo above had an older version of Eleventy), I'd file a bug at https://github.com/11ty/eleventy/issues. In the meantime, you could see if a custom watch target for your nunjucks template folder works: https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets I generally don't use |
Per 11ty/eleventy#495 (comment),
Looks like instead of possibly using the
| safe
filter on 90% of the output, we might be able to fiddle with autoescape (but requires a custom Nunjucks environment):See:
The text was updated successfully, but these errors were encountered: