diff options
Diffstat (limited to 'docs/ref/templates/api.txt')
| -rw-r--r-- | docs/ref/templates/api.txt | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 2057c370f3..305945a856 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -1057,37 +1057,6 @@ Loader methods :meth:`get_contents` for custom template loaders. ``get_template()`` will usually not need to be overridden. - .. method:: load_template_source(template_name, template_dirs=None) - - Returns a tuple of (``template_string``, ``template_origin``), where - ``template_string`` is a string containing the template contents, - and ``template_origin`` is a string identifying the template source. - A filesystem-based loader may return the full path to the file as the - ``template_origin``, for example. - - ``template_dirs`` is an optional argument used to control which - directories the loader will search. - - This method is called automatically by :meth:`load_template` and should - be overridden when writing custom template loaders. - - .. deprecated:: 1.9 - - Custom loaders should use :meth:`get_template` and - :meth:`get_contents` instead. - - .. method:: load_template(template_name, template_dirs=None) - - Returns a tuple of (``template``, ``template_origin``), where ``template`` - is a ``Template`` object and ``template_origin`` is a string identifying - the template source. A filesystem-based loader may return the full - path to the file as the ``template_origin``, for example. - - .. deprecated:: 1.9 - - Custom loaders should use :meth:`get_template` and - :meth:`get_contents` instead. - .. admonition:: Building your own For examples, `read the source code for Django's built-in loaders`_. |
