django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

Improve Jinja2 support in DRF

Open xordoquy opened this issue 9 years ago • 7 comments

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.

xordoquy avatar Apr 29 '16 08:04 xordoquy

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

xordoquy avatar Apr 29 '16 09:04 xordoquy

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

auvipy avatar May 01 '16 20:05 auvipy

I'm reluctant to add an external dependency here.

xordoquy avatar May 01 '16 21:05 xordoquy

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

FlogFr avatar May 02 '16 08:05 FlogFr

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

auvipy avatar May 02 '16 10:05 auvipy

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

auvipy avatar Jan 14 '17 06:01 auvipy