summaryrefslogtreecommitdiff
path: root/devel/py-jinja2-time/pkg-descr
blob: 91b69653e8955f2c52de093ce64928951916ff78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
Jinja2 Extension for Dates and Times

The extension comes with a 'now' tag that provides convenient access to
the arrow.now() API from your templates.  You can control the output
by specifying a format that will be passed to Python's strftime().

TimeExtension extends the environment with a 'datetime_format'
attribute.  It is used as a fallback if you omit the format for 'now'.

jinja2-time implements a convenient interface to modify 'now' by a
relative time offset.