Replies: 2 comments 3 replies
-
@elied Hi! I’m afraid I haven’t tried it with Jinja, and I don’t think I’ve seen anyone else asking about it here either. I’m open to PRs adding support for Jinja given it’s not too much of a maintenance burden. Maybe you could give it a try and report back? |
Beta Was this translation helpful? Give feedback.
-
@EmilStenstrom there is some discussion about making Jinja the default templating language by the Django team. From the Django Newsletter:
I assume DTL would remain, but something to keep an eye on. https://docs.google.com/document/d/11Z0g7YXo1XveHW4XQnFqVo0o-4rkv-FxrSgxdMWGfXk/mobilebasic |
Beta Was this translation helpful? Give feedback.
-
I came across django-components and am very interested to give it a try, but my team uses Django's Jinja2 backend and I'm having trouble making things work.
I'm far from an expert with Django's templating settings, but there seem to be a few issues. Firstly, I don't know how to use the django_components.template_loader.Loader, since the Jinja backend seems to only support a single 'loader' option (docs).
Despite that, I naively tried to define the 'component' templatetag as an environment filter, but that unsurprisingly led to other errors.
Is there a way to get this working? Maybe the django-jinja would make this easier?
Beta Was this translation helpful? Give feedback.
All reactions