summaryrefslogtreecommitdiff
path: root/docs/templates_python.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-06-16Fixed #6898 -- Fixed some typos in docs/templates_python.txt. Thanks, djoumeAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-08Fixed #6732 -- Added missing word "must" in `templates_python.txt` docs, ↵Gary Wilson Jr
thanks Atul Varma. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-06Fixed #6721 -- Fixed a typo in `templates_python.txt` documentation, thanks ↵Gary Wilson Jr
Atul Varma. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-18Fixed a few errors in the documentation. Thanks, Matthew Flanagan, ↵Malcolm Tredinnick
panni@fragstore.net and adamv. Fixed #6411, #6426, #6524, #6555. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13Fixed another typo in templates docs.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13Fixed typo in templates docs.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Small typo fixes. Thanks, jdetaeye, Ionut Ciocirlan, David Reynolds and adamv.Malcolm Tredinnick
Fixed #6123, #6133, #6179, #6194. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6923 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-11-29Fixed #5955 -- Made a bunch of ReST fixes. Thanks, SmileyChris.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-18Rewrote the section about writing autoescaping-aware filters, based on feedbackMalcolm Tredinnick
from Ivan Sagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6692 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-10-07Fixed an RST formatting typo.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Fixed #3453: introduced a new template variable resolution system by Brian ↵Jacob Kaplan-Moss
Harring (thanks!). The upshot is that variable resolution is about 25% faster, and you should see a measurable performance increase any time you've got long or deeply nested loops. Variable resolution has changed behind the scenes -- see the note in templates_python.txt -- but template.resolve_variable() still exists. This should be fully backwards-compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5484 -- Documented render_to_string. Thanks, ubernostrumAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Edited docs/templates_python.txt change from [6143]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13Fixed #4793 -- Tweaked custom filter documentation a little to possibly ↵Malcolm Tredinnick
reduce some confusion. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-18Fixed #5187 -- Minor doc tweaks. Thanks, Daniel Hahler.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12Fixed #4640 -- Fixed import to stringfilter in docs. Proposed solution to ↵Russell Keith-Magee
move stringfilter into django.template.__init__ introduces a circular import problem. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-03Converted some tabs to four spaces in two docsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5600 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-03Fixed tabs -> spaces in [5598]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-03Fixed an error in a RequestContext example in docs/templates_python.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25Fixed #4668, #4669, #4670, #4671 -- Fixed a group of ReST markup errors. ↵Malcolm Tredinnick
Thanks, Richard House. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22Backed out the changes in [5482] for a bit whilst some more investigation intoMalcolm Tredinnick
side-effects is done. Refs #4565. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4565 -- Changed template rendering to use iterators, rather thanMalcolm Tredinnick
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01Negligible spacing change to docs/templates_python.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01Fixed #4423 -- Typo fix.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29Fixed #1278 -- Added a context processor that puts MEDIA_URL in the context, ↵Russell Keith-Magee
and added that context processor to the default set. Thanks to Ubernostrum for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11Fixed #4267 -- In example code, extract the template tag name correctly inMalcolm Tredinnick
error messages where Token.split_contents() has failed. Thanks, keisuke.nishida@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Fixed #3753 -- Allow optional display of invalid variable name inMalcolm Tredinnick
TEMPLATE_STRING_IF_INVALID. Thanks, Matt McClanahan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Fixed #4202 -- Corrected namespacing of exception in one of the examples.Malcolm Tredinnick
Thanks, luftyluft@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-02Fixed #4139 -- Fixed typo in docs/templates_python.txt.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20Changed all references to tutorial1/ to be tutorial01/ (and similarly forMalcolm Tredinnick
tutorials 2, 3 and 4). This matches the canonical name we use under djangoproject.com/documentation/ as well as the source filename. Should avoid problems with archived documentation and missing HTTP redirects. Refs #4013. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23Fixed documentation from [4558] to be correct.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23Fixed #343: filters that take strings now handle non-strings correctly. ↵Jacob Kaplan-Moss
Thanks to Boffbowsh for the original patch, and to SmileyChris for the updated patch and tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13Renamed date_to_format function in docs/templates_python.txt example so as ↵Adrian Holovaty
to make it not sound like a conversion function. Thanks, linoj git-svn-id: http://code.djangoproject.com/svn/django/trunk@4502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-10Fixed #2655 -- added documentation about resolve_variable() for custom templateMalcolm Tredinnick
tags. Thanks dave@thebarproject.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24Fixed #3333 -- Docs now use relative links, not hard-coded djangoproject.com ↵Adrian Holovaty
links. Thanks for the patch, SmileyChris git-svn-id: http://code.djangoproject.com/svn/django/trunk@4420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-10Fixed typo in docs/templates_python.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-24Made small edits to docs/templates_python.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-23Fixed #2837 -- Documented the context_instance parameter toMalcolm Tredinnick
render_to_response(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-13Fixes #2384,#2566 -- Clarify the role that TEMPLATE_STRING_IF_INVALID plays ↵Russell Keith-Magee
in the template system, and the problems that can occur if it is used on a production site. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-29Fixed #2845 -- Corrected a few spelling errors in the docs and changed aMalcolm Tredinnick
couple of correctly spelt words to their North American counterparts for consistency. Thanks, treborhudson@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2744 -- Added 'Writing your own context processors' to ↵Adrian Holovaty
docs/templates_python.txt git-svn-id: http://code.djangoproject.com/svn/django/trunk@3865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21Fixed #2556 -- Documented that simple_tag functions can take any number ofMalcolm Tredinnick
arguments, not just one. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04Corrected spelling of 'behavior' in docs/templates_python.txt from [3714]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04Fixes #2637 -- Clarified handling of TEMPLATE_STRING_IF_INVALID, especially ↵Russell Keith-Magee
with regards to filtering of invalid values. Modified unit tests to test both empty and non-empty values for TEMPLATE_STRING_IF_INVALID. Thanks to SmileyChris for identifying and helping to resolve this bug. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31Fixed #2610 -- Clarified docs on 'messages' variable for auth context processorAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-28Fixed #2610 -- corrected documentation about the auth context processor ↵Jacob Kaplan-Moss
(thanks, ubernostrum). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-18Made small change to docs/templates_python.txt to explicitly define 'context ↵Adrian Holovaty
processors', for the benefit of searches git-svn-id: http://code.djangoproject.com/svn/django/trunk@3606 bcc190cf-cafb-0310-a4f2-bffc1f526a37