summaryrefslogtreecommitdiff
path: root/docs/ref/templates/api.txt
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2009-12-25 20:51:30 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2009-12-25 20:51:30 +0000
commitb4f5e80cd1a6429a42f168142b5a3d90ce2afb26 (patch)
treed48ea904bc429c4eadc7b12ac0e7871fcb3cbc1c /docs/ref/templates/api.txt
parentac6273d6750be112dcb909d2201104be5885e806 (diff)
Added a few Sphinx directives to the form API and template API docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/templates/api.txt')
-rw-r--r--docs/ref/templates/api.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index fa42949eea..120cab384b 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -502,12 +502,14 @@ The Python API
Django has two ways to load templates from files:
-``django.template.loader.get_template(template_name)``
+.. function:: django.template.loader.get_template(template_name)
+
``get_template`` returns the compiled template (a ``Template`` object) for
the template with the given name. If the template doesn't exist, it raises
``django.template.TemplateDoesNotExist``.
-``django.template.loader.select_template(template_name_list)``
+.. function:: django.template.loader.select_template(template_name_list)
+
``select_template`` is just like ``get_template``, except it takes a list
of template names. Of the list, it returns the first template that exists.