Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/template/backends
Commit message (Collapse)AuthorAgeFilesLines
* Removed support for passing a context to a generic ↵Tim Graham2015-09-241-32/+2
| | | | | | Template.render(). Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Removed dirs parameter in template engine methods and ↵Tim Graham2015-09-241-3/+3
| | | | | | related funtions. Per deprecation timeline.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-4/+4
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-211-0/+60
| | | | | | | | 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.
* Fixed #24119, #24120 -- Formalized debug integration for ↵Preston Timmons2015-05-073-14/+84
| | | | template backends.
* Fixed #24538 -- Allowed self in Jinja contextTim Heap2015-04-011-1/+1
| | | | | | 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.
* Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin2015-02-151-1/+1
|
* Split DTL context creation into its own function.Aymeric Augustin2015-02-101-10/+2
| | | | | | | This reduces the length of rope RequestContext gives users to hang themselves with. Thanks Alex Hill for the report and Tim Graham for the review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-5/+5
|
* Deprecated passing a Context to a generic Template.render.Aymeric Augustin2015-01-121-2/+30
| | | | | | | | | | | A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
* Rewrapped TemplateSyntaxError in Jinja2 backend.Aymeric Augustin2015-01-121-6/+8
| | | | | Changed import style to avoid confusion between Django's and Jinja2's APIs.
* Made context take priority over context processors.Aymeric Augustin2015-01-061-1/+7
| | | | | | | | | This is the expected behavior, but given RequestContext's tortuous implementation, a straightforward use of its API results in the opposite. This commits fixes a regression that must have happened at different points in the multiple templates engine refactor for different features.
* Supported multiple template engines in get_template and ↵Aymeric Augustin2014-12-281-7/+15
| | | | | | | | select_template. This commit changes the return type of these two functions. Instead of returning a django.template.Template they return a backend-specific Template class that must implement render(self, context).
* Added Django template backend.Aymeric Augustin2014-12-285-0/+53
|
* Added jinja2 template backend.Aymeric Augustin2014-12-281-0/+58
|
* Added dummy template backend.Aymeric Augustin2014-12-282-0/+66
|
* Imported BaseEngine from the DEP.Aymeric Augustin2014-12-282-0/+80
i18n is left aside for now.