Created
March 3, 2020 18:47
-
-
Save hitenpratap/6c4a8be3792d63c10a02e952d21864ab to your computer and use it in GitHub Desktop.
A code snippet to show how custom jinja2 filters can be registered with the template engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from util.template_filters import calculate_date_date | |
app.add_template_filter(calculate_date_date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment