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
Fixes #12761: Add the possibility to customize filters and tests for jinja2 templating #770
Conversation
beb9c1b
to
d6950d7
Compare
if pkgutil.find_loader('jinja2_custom') is None: | ||
custom_filters = False | ||
else: | ||
custom_filters = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is one line:
custom_filters = pkgutil.find_loader('jinja2_custom') is not None
…jinja2 templating
Commit modified |
d6950d7
to
784269f
Compare
This PR is not mergeable to upper versions. |
OK, merging this PR |
@@ -52,6 +52,9 @@ | |||
# Note: You can add comments in the template, that will not be rendered in the output file with | |||
# `{# ... #}`. | |||
# | |||
# You can extend the Jinja2 templating engine by adding custom FILTERS and TESTS in the script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need an example of the content of such a file.
https://www.rudder-project.org/redmine/issues/12761
Replacing previous PR: #769