summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2015-09-23Refs #23913 -- Removed support for a single equals sign in {% if %} tag.Tim Graham
Per deprecation timeline.
2015-09-23Made template response APIs enforce the use of dict and backend-specific ↵Tim Graham
template objects. Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
2015-09-23Removed support for passing a context to a generic Template.render().Tim Graham
Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
2015-09-23Removed template.loader.BaseLoader per deprecation timeline.Tim Graham
2015-09-23Removed deprecated TEMPLATE_* settings per deprecation timeline.Tim Graham
2015-09-23Removed dictionary and context_instance parameters for render functions.Tim Graham
Per deprecation timeline.
2015-09-23Removed dirs parameter in template engine methods and related funtions.Tim Graham
Per deprecation timeline.
2015-09-23Removed current_app argument to render() and TemplateResponse().Tim Graham
Per deprecation timeline.
2015-09-23Refs #13408 -- Made unpacking mismatch an exception in {% for %} tag per ↵Tim Graham
deprecation timeline.
2015-09-23Refs #22933 -- Removed template.resolve_variable() per deprecation timeline.Tim Graham
2015-09-23Refs #23269 -- Removed the removetags template tag and related functions per ↵Tim Graham
deprecation timeline.
2015-09-23Refs #23261 -- Removed old style list syntax for unordered_list filterTim Graham
Per deprecation timeline.
2015-09-23Refs #24451 -- Removed comma-separated {% cycle %} syntax per deprecation ↵Tim Graham
timeline.
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
2015-09-21Fixed #25373 -- Added warning logging for exceptions during {% include %} ↵Nick Johnson
tag rendering.
2015-09-21Refs #18773 -- Improved template variable exception logging message.Nick Johnson
2015-09-15Fixed #25404 -- Added line numbers to TemplateSyntaxError strings.Dave Smith
This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
2015-09-11Fixed #24765 -- Allowed template context updates to flatten a Context.Buddy Lindsey, Jr
2015-09-05Refs #24235 -- Removed unused is_usable attribute from base template Loader.Tim Graham
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-12Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck
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 "%%".
2015-07-27Fixed #24127 -- Changed the default current_app to the current namespace.Marten Kenbeek
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.
2015-07-21Corrected HTML-escaping behaviour of url template tag.Luke Plant
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.
2015-07-16Fixed #25120 -- Deprecated egg template loader.Tim Graham
2015-07-06Removed some u string prefixes in code comments.Tim Graham
2015-07-06Removed unused variable template.base.ALLOWED_VARIABLE_CHARS.Tim Graham
Unused since 5d863f1fbd26537a8bca2920bc591279d15fbdf1.
2015-06-30Used %r in the TextNode repr to show newlines better.Ned Batchelder
2015-06-29Removed unnecessary returnAndriy Sokolovskiy
2015-06-29Removed unreachable codeAndriy Sokolovskiy
2015-06-29Fixed #25018 -- Changed simple_tag to apply conditional_escape() to its output.Luke Plant
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.
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-27Fixed #25031 -- Fixed a regression in the unordered_list template filter.Noam
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-06-06Fixed #23516 -- Added caching of include tag Template objectsMatthew Somerville
This also speeds up for loops that render the same template multiple times.
2015-05-27Fixed #24847 -- Prevented items set on a RequestContext from being lost.Paweł Marczewski
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* 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.
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-05-06Moved engine-related exceptions to django.template.exceptions.Preston Timmons
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.
2015-05-06Fixed #24119, #24120 -- Formalized debug integration for template backends.Preston Timmons
2015-05-03Fixed #24685 -- Fixed check for template name unicity.Aymeric Augustin
Thanks Preston Timmons for the report.
2015-04-22Fixed #15053 -- Enabled recursive template loading.Preston Timmons
2015-04-18Removed cases of six.iter* wrapped in a list()Curtis Maloney
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
2015-04-14Fixed #24603 -- Allowed Context.update() to be used as a context manager.Tommy Beadle
2015-04-14Fixed #12199 -- Added the ability to use "as" with the firstof template tag.Craig Oldford
2015-04-03Updated docstring for firstof tag to reflect new auto-escaping behavior.Preston Timmons
2015-04-01Fixed #23441, #24555 -- Improved the behavior of InclusionNode.Preston Timmons
This change: * Makes the InclusionNode cache-safe by removing render-time side effects to its nodelist. * Ensures the render_context stack is properly scoped and reset by updating the render call to use Template.render rather than Nodelist.render.
2015-04-01Fixed #24538 -- Allowed self in Jinja contextTim Heap
Rendering a Jinja template with self in the context threw an error. While self is a reserved variable in Jinja, including self in the context is not an error, so Django should respect that.
2015-03-27Fixed #18773 -- Added logging for template variable resolvingCaroline Simpson
Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
2015-03-20Cleaned up the template debug implementation.Preston Timmons
This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.