Skip to content

Instantly share code, notes, and snippets.

@hitenpratap
Created March 3, 2020 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitenpratap/6c4a8be3792d63c10a02e952d21864ab to your computer and use it in GitHub Desktop.
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
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