tjsmith-meta
tjsmith-meta
Here's a very hacky solution from a quick pass over the code. Seems unlikely to be a complete or fully correct solution, but appears like it works for the particular...
The official documentation also seems to confirm that 'not in' syntax is valid in jinja2. https://jinja.palletsprojects.com/en/2.10.x/templates/#logic
I would recommend leveraging MiniJinja (Rust, would need to leverage cxx-rust interop) instead if you are able. See https://github.com/jinja2cpp/Jinja2Cpp/issues/269 where I shared some benefits of leveraging it over Jinja2Cpp.
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
Thank you very much for taking a look and responding! Here's the more specific context (which I had left as a comment on https://github.com/mitsuhiko/minijinja/issues/660 after it closed). Resharing here. There's...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
I took a pass over the code to understand it a bit better. Here are some hacky incomplete changes that address rendering for none/bool/quotes, but doesn't touch the Tuple "()"...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
Mmm. Yeah, there are definitely edge cases where Python Jinja2 (we are on some version of Python 3) will not work for SQL generation, due to the string containing a...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
Thank you for sharing context around some of the challenges and nuance here, and enumerating some potential options and considerations here. This is super helpful. > Also would not help...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
I noticed that this issue is tagged "needs-more-information". Any information needed from my side here, or is that tag lingering from before? I also see you've had a pull request...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
Got it. Thanks for clarifying. Yeah, the ideal solution would be one such that the new pycompat_rendering flag works for all cases -- bool, none, quotes, tuples, lists, dicts. (Bare...
Render discrepancies with Python Jinja2 (none vs None, true vs True, double vs single quotes, tuple)
Once again checking in here. I see your experimental pull request https://github.com/mitsuhiko/minijinja/pull/833 that adds tuple support. Any update on your thinking here regarding adding Tuple support for render parity with...