Re: [Django] #35535: Provide new template tag to capture internal block output as a template variable ("simple block tag").

27 views
Skip to first unread message

Django

unread,
Jul 10, 2024, 8:07:59 AM7/10/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
-------------------------------------+-------------------------------------
Reporter: Jake Howard | Owner: Sushmita
| Palikhe
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sushmita Palikhe):

* owner: Jake Howard => Sushmita Palikhe
* status: new => assigned

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

Django

unread,
Jul 10, 2024, 9:01:17 AM7/10/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Natalia Bidart):

* owner: Sushmita Palikhe => Jake Howard

Comment:

Hello Sushmita Palikhe! Thank you for your interest in contributing to
Django, but this ticket is already owned by Jake and their work is still
active.
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:8>

Django

unread,
Jul 10, 2024, 9:14:19 AM7/10/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+------------------------------------
Reporter: Jake Howard | Owner: (none)
Type: New feature | Status: new
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Sushmita Palikhe):

* owner: Jake Howard => (none)
* status: assigned => new

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:9>

Django

unread,
Jul 10, 2024, 9:16:26 AM7/10/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Jake Howard):

* owner: (none) => Jake Howard
* status: new => assigned

Comment:

Yes, definitely still active. The draft PR is linked above though, and I'd
definitely welcome any comments / suggestions you may have.
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:10>

Django

unread,
Aug 2, 2024, 3:24:18 AM8/2/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Sébastien Corbin):

* cc: Sébastien Corbin (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:11>

Django

unread,
Aug 7, 2024, 11:01:34 AM8/7/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Comment (by Sarah Boyce):

Note that #6378 was recently closed as a duplicate to this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:12>

Django

unread,
Aug 12, 2024, 11:28:08 AM8/12/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Comment (by Jake Howard):

I do think there are cases where the "capture" model is the appropriate
one, and it ought to be built-in.

Currently, the simple block is added with a related implementation. It
should be simple enough to use it to implement a `capture` tag, but I
wasn't going to add it to the existing PR to avoid scope-creep. I can if
you think it'd be better?
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:13>

Django

unread,
Aug 13, 2024, 2:49:56 AM8/13/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Comment (by Carlton Gibson):

@Jake I’d keep the scope as is. Let’s let folks build with the new tag
(IMO)
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:14>

Django

unread,
Aug 15, 2024, 5:20:13 AM8/15/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:15>

Django

unread,
Aug 15, 2024, 10:20:22 AM8/15/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Jake Howard):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:16>

Django

unread,
Sep 2, 2024, 8:03:46 AM9/2/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:17>

Django

unread,
Sep 3, 2024, 10:25:08 AM9/3/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Jake Howard):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:18>

Django

unread,
Sep 4, 2024, 2:47:40 PM9/4/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:19>

Django

unread,
Sep 6, 2024, 7:51:35 AM9/6/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:20>

Django

unread,
Sep 19, 2024, 10:12:33 AM9/19/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 0 => 1

Comment:

I gave this another top-bottom pass. Once the minor nitpicks are fixed, I
need to do a in-depth review in terms of test coverage and functionality.
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:21>

Django

unread,
Sep 30, 2024, 11:39:29 AM9/30/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
---------------------------------+---------------------------------------
Reporter: Jake Howard | Owner: Jake Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Jake Howard):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:22>

Django

unread,
Nov 14, 2024, 2:03:09 PM11/14/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
-------------------------------------+-------------------------------------
Reporter: Jake Howard | Owner: Jake
| Howard
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:23>

Django

unread,
Nov 19, 2024, 12:35:19 PM11/19/24
to django-...@googlegroups.com
#35535: Provide new template tag to capture internal block output as a template
variable ("simple block tag").
-------------------------------------+-------------------------------------
Reporter: Jake Howard | Owner: Jake
| Howard
Type: New feature | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"4c452cc377f6f43acd90c6e54826ebd2e6219b0d" 4c452cc3]:
{{{#!CommitTicketReference repository=""
revision="4c452cc377f6f43acd90c6e54826ebd2e6219b0d"
Fixed #35535 -- Added template tag decorator simple_block_tag().

Co-authored-by: Natalia <124304+...@users.noreply.github.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35535#comment:24>
Reply all
Reply to author
Forward
0 new messages