summaryrefslogtreecommitdiff
path: root/docs/templates.txt
AgeCommit message (Collapse)Author
2008-08-23Massive reorganization of the docs. See the new docs online at ↵Jacob Kaplan-Moss
http://docs.djangoproject.com/. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Clarified a bit of the {% url %} documentation. Fixes #7714.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-30Fixed #7935 -- Corrected typo in template docs, plus slightly clarified the ↵Russell Keith-Magee
language. Thanks to jturnbull for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #4534 -- Added an "else" option to the "ifchanged" template tag.Malcolm Tredinnick
Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #7948 -- Fixed a typo in the linebreaks filter documentation, pointed outMalcolm Tredinnick
by Joel Kitching. While I was in the neighbourhood, made one other example a little more consistent. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22Fixed #7814 -- Fixed a number of style inconsistencies in the docs. Thanks, ↵Adrian Holovaty
uzi and programmerq git-svn-id: http://code.djangoproject.com/svn/django/trunk@8043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01Changed a documentation example that wasn't wrong to stop complaints.Malcolm Tredinnick
Fixed #7544. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17Fixed #7470 -- Corrected typo in template docs. Thanks to cbmeeks@gmail.com ↵Russell Keith-Magee
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #6993 -- Fixed a grammar error in docs/templates.txt. Thanks, Ionut ↵Adrian Holovaty
Ciocirlan git-svn-id: http://code.djangoproject.com/svn/django/trunk@7649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6166: Improved example of autoescaping with template inheritance. ↵James Bennett
Based on a patch from PJCrosier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Edited docs/templates.txt changes from [7276]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6351: added more examples to template filters. Thanks, David Tulig ↵Jacob Kaplan-Moss
and atlithorn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-16Made a bunch of small doc rewordings from changes over the past couple of weeksAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09Fixed #6345 -- Django supports week numbers all the way up to 53, not just 23.Malcolm Tredinnick
Thanks, djoume. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06Fixed #6330 -- Fixed reST error in templates documentation, thanks ↵Gary Wilson Jr
`SmileyChris`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06Fixed #5567 -- Added a "last" filter. Based on a patch from darkpixel.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11Fixed #6151 -- Added some code formatting to the `floatformat` template ↵Gary Wilson Jr
filter doc section. Thanks, adamv. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Fixed #4131: added an "escapejs" filter for use in JavaScript strings, and ↵Jacob Kaplan-Moss
updated the documentation on addslashes to point to the new ticket. Featuring contributions from Ned Batchelder, Jeremy Dunck, and Andy Durdin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Removed some 'behaviour's from the docsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #6097 -- Fixed some broken RST markup. Thanks, Simeon.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-01Edited templates.txt and templates_python.txt auto-escaping changes from [6671]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-01Edited docs/custom_model_fields.txt from [6652]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-30Edited docs/templates.txt changes from [6533]. Let's not smash people over ↵Adrian Holovaty
the head with an only marginally important piece of information in the very first paragraph of the document. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-17Fixed #5945 -- Treat string literals in template filter arguments as safeMalcolm Tredinnick
strings for auto-escaping purposes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14Content coming via {{ block.super }} is always going to be correctly escapedMalcolm Tredinnick
already. We mark it as safe so that template authors don't need to. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick
controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-04Added pretty tables for `floatformat` documentation.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-04Fixed #5869 -- Corrected documentation for `now` template tag's "r" format ↵Gary Wilson Jr
character. Thanks, xavier.morel@masklinn.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #4123 -- Changed the firstof template tag to correctly handle a literalMalcolm Tredinnick
string as its last argument. Thanks, Wesley Fok and Matt Boersma. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Added a section to the template documentation to clarify the arbitrary PythonMalcolm Tredinnick
code should not be expected to work. The might help balance expectations. Thanks, James Bennett. Fixed #5125. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-19Fixed #5658 -- Added a note to the top of the "for template authors" ↵Gary Wilson Jr
template documentation that states the scope of the document, along with a link to the "for Python programmers" documentation. Removed the link to the "for Python programmers" documentation at the bottom since it would be redundant. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-17Fixed #2675 -- Changed the `timeuntil` and `timesince` template filters to ↵Gary Wilson Jr
display "0 minutes" when passed a past or future date respectively instead of "-1 years, 12 months". Thanks to nickefford for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5477 -- Added links from the markup filters to the more extensive ↵Malcolm Tredinnick
documentation in the add-ons file. Patch from mitja. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #4658 -- Improved documentation of linebreaks and linebreaksbr. ↵Adrian Holovaty
Thanks, ubernostrum and Gary Wilson git-svn-id: http://code.djangoproject.com/svn/django/trunk@6223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5340 -- Fixed a broken link. Thanks, Justin Lilly.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #208 -- Modernized the syntax of the cycle tag to allow for spaces and ↵Russell Keith-Magee
variables in cycle values. Thanks to SmileyChris and Chris McAvoy for their work on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-09Fixed #5340 -- Linked docs/templates.txt to docs/templates_python.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-26Fixed #3184 -- Changed the `unordered_list` template filter to use a more ↵Gary Wilson Jr
simple format, while maintaining backwards compatibility with the old format. `unordered_list` now works with a simple list of items. Thanks for the patch, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-19Edited docs/templates.txt change from [5938]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-19Added a note that the development version supports named URL patterns in the ↵Malcolm Tredinnick
url template tag. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-19Clarified that urlize and urlizetrunc should only be applied to plain text. ↵Malcolm Tredinnick
Refs #5202. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-15Improved docs/templates.txt section on the 'regroup' tagAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12Fixed #4522 -- Clarified the allowed filter arguments on the time and date ↵Russell Keith-Magee
filters. Thanks for the suggestion, admackin@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Fixed #4657 -- Fixed an error in an edge case of the urlizetrunc filter.Malcolm Tredinnick
Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-08Fixed #3523 -- Added list unpacking to for loops in templates. Thanks to ↵Russell Keith-Magee
SmileyChris and Honza Kral for their work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-07Fixed #4000 - changed documentation to note that filter arguments no longer ↵Jacob Kaplan-Moss
need to be quoted (and added a test to that effect). Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-27Added a clarification that {#...#} is only for single-line comments.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26Fixed #4355 -- Clarified a confusing example in the use of the url templateMalcolm Tredinnick
tag. Based on a patch from Collin Grady. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-16Fixed #4038 -- Added reference to django.contrib.webdesign in the template docs.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5010 bcc190cf-cafb-0310-a4f2-bffc1f526a37