Created
March 5, 2018 20:43
-
-
Save dario61081/9a99407778ece47dc9d43febab8125dc to your computer and use it in GitHub Desktop.
inject funcions o values in jinja templates
This file contains hidden or 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
@app.context_processor | |
def inject_functions(): | |
return dict(date=datetime.date.today().strftime("%d/%m/%Y")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment