Re: [Django] #33819: Add shortcut for rendering multiple templates.

5 views
Skip to first unread message

Django

unread,
Jul 3, 2022, 4:51:23 AM7/3/22
to django-...@googlegroups.com
#33819: Add shortcut for rendering multiple templates.
-------------------------------------+-------------------------------------
Reporter: Thomas De Bonnet | Owner: Thomas De
| Bonnet
Type: New feature | Status: closed
Component: Template system | Version: 4.0
Severity: Normal | Resolution: wontfix
Keywords: HTMX, render, | Triage Stage:
template | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Adam Johnson):

I already rejected the feature idea from django-htmx:
https://github.com/adamchainz/django-htmx/pull/240 . I said it's "really a
feature request for django's template engine", but mostly because I didn't
see the motivation. I still don't.

Why not just make a template that uses multiple `{% include %}` tags? IMO
this keeps the separation between view and template aligned with Django’s
M-V-T model.

--
Ticket URL: <https://code.djangoproject.com/ticket/33819#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages