#3769: use vars in {% url %}
-------------------------------------------------+--------------------------
Reporter: Paul Rauch <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
Template system
Version: SVN | Resolution:
Keywords: absolute url variable | Stage:
Design decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------------------------------+--------------------------
Comment (by mtredinnick):
This is a reasonable request. I have a feeling there's another ticket open
about this, too, but I can't seem to find it at the moment.
The only slightly tricky thing here is what the solution should be. The
natural fix is to make the url tag behave like every other tag: values in
quotes are strings, non-quoted values are treated as variables and
resolved in the current context. Unfortunately, that requires a backwards-
incompatible change. Not out of the question, but not ideal. However, all
the other solutions I can think of lead to inconsistent behaviour or are
just impractical.
I'd like to hear Jacob or Adrians' impressions on this before going ahead
and breaking systems for 1.0.
At the moment, I'm probably slightly in favour of breaking compatibility,
because there's no real alternative.
--
Ticket URL: <http://code.djangoproject.com/ticket/3769#comment:4>
Django Code <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
-~----------~----~----~----~------~----~------~--~---