Allow setting custom self.env.globals #806
ahuang11
started this conversation in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
I think by allowing custom input kwargs in self.env.globals, custom templates can be more powerful.
For example, I want to extend client.py.jinja2 by using an additional global env var:
auth_method=True
:Describe the solution you'd like
A clear and concise description of what you want to happen.
In
Project.__init__
, a keyword:If this is accepted, I'm happy to help contribute a PR
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Manually selecting the template on runtime
Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions