-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
keep_trailing_newline and other options missing from Environment.overlay #1645
Comments
Happy to review a PR. |
@davidism I'm working on the change, but right now, the tests seem to be broken:
It seems related to this issue, but it looks like the error is in another repo, since the version of 'click' is hardcoded in requirements/dev.txt. FYI, I followed the steps here: https://github.com/pallets/jinja/blob/main/CONTRIBUTING.rst#first-time-setup to prepare the environment, and I'm using python 3.10.2 |
I've pushed an update to the 3.1.x branch (and main, but make bug fixes off the maintenance branch). |
@davidism Great! As requested, here's the pull request for the 3.1.x branch |
I was planning to use the Environment.overlay method in a flask app, to create a new environment with specific environment options that only apply to one endpoint.
However, it seems like some options were not added to the overlay method, when the options were added to jinja (example pull request). In my case this is the 'keep_trailing_newline' option, but also the 'newline_sequence', 'enable_async' options are not available on the overlay method.
Replication
Expectation
I would have expected to be able to change at least the 'newline_sequence' and 'keep_trailing_newline' options via the overlay method.
Environment
Note: If required I can submit a pull-request to add all 3 options to the overlay function, please let me know!
The text was updated successfully, but these errors were encountered: