[Django] #24583: Passing objects to template tags

8 views
Skip to first unread message

Django

unread,
Apr 4, 2015, 4:34:20 PM4/4/15
to django-...@googlegroups.com
#24583: Passing objects to template tags
---------------------------------+-----------------------------------
Reporter: mishavetl | Owner: nobody
Type: New feature | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Keywords: template tags feature
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-----------------------------------
How about passing objects to template tags as an arguments.
It would increase fucntionality of template tags.
Or is there a perfomance issue?

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

Django

unread,
Apr 4, 2015, 4:50:30 PM4/4/15
to django-...@googlegroups.com
#24583: Passing objects to template tags
-------------------------------------+-------------------------------------

Reporter: mishavetl | Owner: nobody
Type: New feature | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: template tags | Triage Stage:
feature | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by mishavetl):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Old description:

> How about passing objects to template tags as an arguments.
> It would increase fucntionality of template tags.
> Or is there a perfomance issue?

New description:

How about passing objects to template tags as an arguments.
It would increase fucntionality of template tags.

Or is there a security issue?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24583#comment:1>

Django

unread,
Apr 4, 2015, 5:10:51 PM4/4/15
to django-...@googlegroups.com
#24583: Passing objects to template tags
-------------------------------------+-------------------------------------

Reporter: mishavetl | Owner: nobody
Type: New feature | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: template tags | Triage Stage:
feature | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Old description:

> How about passing objects to template tags as an arguments.
> It would increase fucntionality of template tags.

> Or is there a security issue?

New description:

How about passing objects to template tags as an arguments.

It would increase functionality of template tags.
Or is there a security issue?

--

Comment (by timgraham):

It's not clear to me what functionality you are proposing.

You can use [https://docs.djangoproject.com/en/1.8/howto/custom-template-
tags/#django.template.Library.simple_tag simple_tag()] to pass arguments
to template tags.

--
Ticket URL: <https://code.djangoproject.com/ticket/24583#comment:2>

Django

unread,
Apr 4, 2015, 8:04:18 PM4/4/15
to django-...@googlegroups.com
#24583: Passing objects to template tags
-------------------------------------+-------------------------------------
Reporter: mishavetl | Owner: nobody
Type: New feature | Status: closed

Component: Template system | Version: 1.8
Severity: Normal | Resolution: needsinfo

Keywords: template tags | Triage Stage:
feature | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => needsinfo


--
Ticket URL: <https://code.djangoproject.com/ticket/24583#comment:3>

Reply all
Reply to author
Forward
0 new messages