-
Notifications
You must be signed in to change notification settings - Fork 643
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
Nunjucks-slim fails on installJinjaCompat() #1019
Comments
Until mozilla/nunjucks#1019 is resolved
My guess is that jinja-compat is attempting to patch both the runtime and the compiler/parser, and since the latter are not included in slim, it's exploding. Lines 14 to 15 in 6f4739e
My guess is that's where it's choking. Options include:
If this is still a relevant issue for y'all, I can take a look at writing a PR. |
Is there actually value in having a separate |
Hmm. I think if we were ever to consider Liquid or Twig compatibility patches, merging the changes from Jinja2's compatibility patch into "core" might turn out to bite us. I really like the slice operator, but many of the other changes are very Pythonic. |
A fix for this is in the works. |
Hi, many thanks for releasing the 3.0.1 version. I am trying to use the slice syntax with nunjucks-slim. I got help with pre-compilation in Jinja Compatibility mode, but I cannot use the pre-compiled tempates. It seems that there is a bug in installJinjaCompat() for nunjucks-slim; the bug:
Following code is sufficient to reproduce:
And here is jsfiddle with some additional testing code.
Is it a bug, or an intended behaviour? How can I make Jinja compatibility mode work with nunjucks-slim?
The text was updated successfully, but these errors were encountered: