I am looking to find out how to output the current year in a Flask template. I know in Django you can use {% now \"Y\" %}., but is there a Flask equivalent? I have
For moment there is Flask Moment. It is powerful like Moment, and easy to use in Flask. To display the year in the user's local time from your Jinja template:
The current year is: {{ moment().format('YYYY') }}.