Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/template
Commit message (Collapse)AuthorAgeFilesLines
* Renamed filesizeformat tag's bytes variable to avoid ↵Sambhav Satija2015-10-271-16/+16
| | | | clash with builtin.
* Fixed #25441 -- Added support for negative filesize to ↵Sambhav Satija2015-10-271-0/+6
| | | | | | filesizeformat template filter. Thanks Andrey Yakovlev for the initial patch.
* Fixed #25610 -- Reverted removal of request.current_app ↵Marten Kenbeek2015-10-261-2/+5
| | | | | | | in {% url %} tag. The deprecation removal in 5e450c52aafb62b9d83c8ac08892e0b92cbec4aa removed too much.
* Renamed deprecated logger.warn to warningClaude Paroz2015-10-241-1/+1
|
* Fixed #25423 -- Made error message for unknown template ↵Pindi Albert2015-10-051-2/+7
| | | | tag more helpful.
* Fixed #25466 -- Added backwards compatibility aliases ↵Tim Graham2015-09-303-1/+21
| | | | | | for LoaderOrigin and StringOrigin. Thanks Simon Charette for the DeprecationInstanceCheck class.
* Refs #22384 -- Removed obsolete code for the removal of ↵Tim Graham2015-09-291-57/+19
| | | | reversing by dotted path.
* Added django.template.engine.Engine.render_to_string() ↵Tim Graham2015-09-241-6/+4
| | | | docstring.
* Refs #23913 -- Removed support for a single equals sign ↵Tim Graham2015-09-241-12/+1
| | | | | | in {% if %} tag. Per deprecation timeline.
* Made template response APIs enforce the use of dict and ↵Tim Graham2015-09-241-53/+2
| | | | | | backend-specific template objects. Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
* Removed support for passing a context to a generic ↵Tim Graham2015-09-241-32/+2
| | | | | | Template.render(). Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Removed template.loader.BaseLoader per deprecation timeline.Tim Graham2015-09-243-31/+1
|
* Removed deprecated TEMPLATE_* settings per deprecation ↵Tim Graham2015-09-241-20/+0
| | | | timeline.
* Removed dictionary and context_instance parameters for ↵Tim Graham2015-09-242-83/+12
| | | | | | render functions. Per deprecation timeline.
* Removed dirs parameter in template engine methods and ↵Tim Graham2015-09-243-70/+15
| | | | | | related funtions. Per deprecation timeline.
* Removed current_app argument to render() and ↵Tim Graham2015-09-243-59/+7
| | | | | | TemplateResponse(). Per deprecation timeline.
* Refs #13408 -- Made unpacking mismatch an exception in ↵Tim Graham2015-09-241-4/+2
| | | | {% for %} tag per deprecation timeline.
* Refs #22933 -- Removed template.resolve_variable() per ↵Tim Graham2015-09-242-18/+0
| | | | deprecation timeline.
* Refs #23269 -- Removed the removetags template tag and ↵Tim Graham2015-09-241-8/+1
| | | | related functions per deprecation timeline.
* Refs #23261 -- Removed old style list syntax for ↵Tim Graham2015-09-241-39/+0
| | | | | | unordered_list filter Per deprecation timeline.
* Refs #24451 -- Removed comma-separated {% cycle %} ↵Tim Graham2015-09-241-9/+0
| | | | syntax per deprecation timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-243-86/+2
|
* Fixed #25373 -- Added warning logging for exceptions ↵Nick Johnson2015-09-221-0/+10
| | | | during {% include %} tag rendering.
* Refs #18773 -- Improved template variable exception ↵Nick Johnson2015-09-221-2/+7
| | | | logging message.
* Fixed #25404 -- Added line numbers to ↵Dave Smith2015-09-151-6/+16
| | | | | | | TemplateSyntaxError strings. This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
* Fixed #24765 -- Allowed template context updates to ↵Buddy Lindsey, Jr2015-09-111-1/+9
| | | | flatten a Context.
* Refs #24235 -- Removed unused is_usable attribute from ↵Tim Graham2015-09-051-1/+0
| | | | base template Loader.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-312-8/+0
|
* Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-121-2/+5
| | | | | | | | | | | | | | | Refactored tests to use a sample project. Updated extraction: * Removed special handling of single percent signs. * When extracting messages from template text, doubled all percent signs so they are not interpreted by gettext as string format flags. All strings extracted by gettext, if containing a percent sign, will now be labeled "#, python-format". Updated translation: * Used "%%" for "%" in template text before calling gettext. * Updated {% trans %} rendering to restore "%" from "%%".
* Fixed #24127 -- Changed the default current_app to the ↵Marten Kenbeek2015-07-272-2/+13
| | | | | | | current namespace. Changed the url template tag to use request.resolver_match.namespace as a default for the current_app argument if request.current_app is not set.
* Corrected HTML-escaping behaviour of url template tag.Luke Plant2015-07-211-1/+3
| | | | | | Due to the URL encoding applied by the tag for all parameters that might be partly controllable by an end-user, there are no XSS/security problems caused by this bug, only invalid HTML.
* Fixed #25120 -- Deprecated egg template loader.Tim Graham2015-07-161-0/+2
|
* Removed some u string prefixes in code comments.Tim Graham2015-07-061-7/+7
|
* Removed unused variable ↵Tim Graham2015-07-061-3/+0
| | | | | | template.base.ALLOWED_VARIABLE_CHARS. Unused since 5d863f1fbd26537a8bca2920bc591279d15fbdf1.
* Used %r in the TextNode repr to show newlines better.Ned Batchelder2015-06-301-2/+2
|
* Removed unnecessary returnAndriy Sokolovskiy2015-06-291-1/+1
|
* Removed unreachable codeAndriy Sokolovskiy2015-06-291-1/+0
|
* Fixed #25018 -- Changed simple_tag to apply ↵Luke Plant2015-06-291-0/+3
| | | | | | | | | conditional_escape() to its output. This is a security hardening fix to help prevent XSS (and incorrect HTML) for the common use case of simple_tag. Thanks to Tim Graham for the review.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-9/+8
|
* Fixed #25031 -- Fixed a regression in the unordered_list ↵Noam2015-06-271-15/+20
| | | | template filter.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-2418-70/+71
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-154-8/+10
|
* Fixed #23516 -- Added caching of include tag Template ↵Matthew Somerville2015-06-061-2/+14
| | | | | | | objects This also speeds up for loops that render the same template multiple times.
* Fixed #24847 -- Prevented items set on a RequestContext ↵Paweł Marczewski2015-05-271-1/+7
| | | | from being lost.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-218-434/+478
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-132-3/+3
|
* Moved engine-related exceptions to ↵Preston Timmons2015-05-0714-57/+78
| | | | | | | | django.template.exceptions. With the introduction of multiple template engines these exceptions are no longer DTL-specific. It makes more sense for them to be moved out of DTL-related modules.
* Fixed #24119, #24120 -- Formalized debug integration for ↵Preston Timmons2015-05-075-28/+112
| | | | template backends.
* Fixed #24685 -- Fixed check for template name unicity.Aymeric Augustin2015-05-031-1/+3
| | | | Thanks Preston Timmons for the report.
* Fixed #15053 -- Enabled recursive template loading.Preston Timmons2015-04-2210-88/+347
|