#1105: [patch] simple_tag decorator enhancement
-----------------------------------------------+----------------------------
Reporter: [EMAIL PROTECTED] | Owner: julien
Status: new | Milestone:
Component: Template system | Version:
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 1 |
-----------------------------------------------+----------------------------
Changes (by julien):
* stage: Accepted => Design decision needed
Comment:
Marking DDN as per Malcolm's email on the dev-list:
http://groups.google.com/group/django-developers/msg/7692178f04969f5b
Specifically responding to Malcolm's comment:
> [...] we need to consider whether adding something like "takes_nodelist"
is really a good idea for something called *simple* tag decorator.
I think that it is worth having `takes_nodelist`, as it does not
necessarily "complexify" `simple_tag`. My interpretation of "simple tag",
in this context, is two-fold: "simple to create a template tag" and "tag
with simple syntax". The proposed patch preserves both of those.
Conversely, a complex tag would be something with a complex syntax (e.g.
`{% if ... and not ... %}`, or `{% get_comment_count for entry as
comment_count %}`), and therefore would justify getting your hands dirty
with variable resolving and tokens.
At this stage, there is no way to "simply" create a "simple" block tag.
--
Ticket URL: <http://code.djangoproject.com/ticket/1105#comment:17>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---