mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #24022 -- Removed the ssi tag per deprecation timeline.
This commit is contained in:
@@ -730,8 +730,8 @@ and Ctrl-C test termination) have been made redundant. In view of this
|
||||
redundancy, ``DjangoTestRunner`` has been turned into an empty placeholder
|
||||
class, and will be removed entirely in Django 1.5.
|
||||
|
||||
Changes to :ttag:`url` and :ttag:`ssi`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Changes to ``url`` and ``ssi``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Most template tags will allow you to pass in either constants or
|
||||
variables as arguments -- for example::
|
||||
@@ -745,15 +745,14 @@ context variable ``templ`` that contains the value ``base.html``::
|
||||
|
||||
is also legal.
|
||||
|
||||
However, due to an accident of history, the :ttag:`url` and
|
||||
:ttag:`ssi` are different. These tags use the second, quoteless
|
||||
syntax, but interpret the argument as a constant. This means it isn't
|
||||
possible to use a context variable as the target of a :ttag:`url` and
|
||||
:ttag:`ssi` tag.
|
||||
However, due to an accident of history, the ``url`` and ``ssi`` are different.
|
||||
These tags use the second, quoteless syntax, but interpret the argument as a
|
||||
constant. This means it isn't possible to use a context variable as the target
|
||||
of a ``url`` and ``ssi`` tag.
|
||||
|
||||
Django 1.3 marks the start of the process to correct this historical
|
||||
accident. Django 1.3 adds a new template library -- ``future`` -- that
|
||||
provides alternate implementations of the :ttag:`url` and :ttag:`ssi`
|
||||
provides alternate implementations of the ``url`` and ``ssi``
|
||||
template tags. This ``future`` library implement behavior that makes
|
||||
the handling of the first argument consistent with the handling of all
|
||||
other variables. So, an existing template that contains::
|
||||
|
||||
Reference in New Issue
Block a user