django1/tests/regressiontests/templates
Luke Plant 2c2f5aee4d Implemented 'smart if' template tag, allowing filters and various operators to be used in the 'if' tag
Thanks to Chris Beaven for the initial patch, Fredrik Lundh for the basis
of the parser methodology and Russell Keith-Magee for code reviews.

There are some BACKWARDS INCOMPATIBILITIES in rare cases - in particular, if
you were using the keywords 'and', 'or' or 'not' as variable names within
the 'if' expression, which was previously allowed in some cases.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@11806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-09 22:40:36 +00:00
..
templatetags Template filters now pass numerical arguments through as numbers. 2009-03-25 03:45:56 +00:00
__init__.py Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. 2006-08-27 13:59:47 +00:00
context.py Fixed #4563 -- Context.pop/push/update return the top-level dictionary (the new 2007-12-02 23:57:22 +00:00
custom.py Template filters now pass numerical arguments through as numbers. 2009-03-25 03:45:56 +00:00
filters.py Fixed #11833: name conflict in filter test. 2009-09-10 16:35:23 +00:00
loaders.py Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code comments. Thanks kaikuehne. 2009-05-17 16:45:28 +00:00
models.py Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. 2006-08-27 13:59:47 +00:00
parser.py Added consistent support for double- and single-quote delimiters in templates. 2009-03-23 09:40:25 +00:00
smartif.py Implemented 'smart if' template tag, allowing filters and various operators to be used in the 'if' tag 2009-12-09 22:40:36 +00:00
tests.py Implemented 'smart if' template tag, allowing filters and various operators to be used in the 'if' tag 2009-12-09 22:40:36 +00:00
unicode.py Fixed #6057 -- Mark rendered template output as safe for auto-escaping purposes. 2007-11-30 15:32:01 +00:00
urls.py Altered a failing url template tag test to work more reliably. 2008-10-05 04:59:55 +00:00
views.py Added a couple of extra tests to ensure url tag robustness. These are an 2008-08-31 17:29:49 +00:00