Django-rest-framework: Improve Jinja2 support in DRF

Created on 29 Apr 2016  路  6Comments  路  Source: encode/django-rest-framework

This is a reminder to improve the Jinja2 support in DRF in regard with the template tags after reading https://twitter.com/aymericaugustin/status/725964478693687296.

Current situation is we have a couple of template tags but they can't be used with Jinja2.

Enhancement

Most helpful comment

I'm reluctant to add an external dependency here.

All 6 comments

Adding another reference:
https://github.com/django/deps/blob/master/final/0182-multiple-template-engines.rst#isn-t-this-going-to-fragment-the-ecosystem-of-pluggable-apps

https://github.com/niwinz/django-jinja how about using this package?

I'm reluctant to add an external dependency here.

iirc django-jinja package was created before Django add the possibility to use jinja. We now have jinja possibility Django built-in :)

that has many helpers to better support different django features work well with jinja2 https://github.com/niwinz/django-jinja/blob/strip/doc/content.adoc#rationale

Should be there a jinja2 renderer? or something like this? alternative templates based on jinja2? I would be happy to contribute

Was this page helpful?
0 / 5 - 0 ratings