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
decorators to add custom jinja filters/globals #13
Comments
Makes a lot of sense, do you want to make a patch with tests for that? |
yes, i'll give it a try! |
any advice on the place to put this code? |
Hey sebest - How about forking and changing the code there? |
@cgrind: my question was related to flask code organization. (not github usage) |
Flask.template_filter :) |
Pulled the changes. |
mitsuhiko, can you please add also Flask.template_global decorator for add functions to app.jinja_env.globals ? Thanks! |
design.rst whole paragraph translation end
Hello,
it would be nice to have a decorator to define a function as a jinja filter instead of adding the function to
app.jinja_env.filters
thanx
The text was updated successfully, but these errors were encountered: