I am developing an application on appengine, and want to use the awesome timesince django templatetag. Since I am using jinja2, I do not have the timesince filter available. How can I import it from django and use in jinja template.
I saw this question, but it does not serve the need.
The
timesincefunction that the Django filter uses can be found here: https://github.com/django/django/blob/master/django/utils/timesince.pyDocumentation on writing custom jinja filters can be found here: http://jinja.pocoo.org/docs/api/#custom-filters