summaryrefslogtreecommitdiff
path: root/docs/ref/templates/api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-09-09 01:54:20 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-09-09 01:54:20 +0000
commit74f386dba274e319eb9e76cfb6f5d38e602104d9 (patch)
treef39a1983daa4cf5650927daa729cf7f39176ae2b /docs/ref/templates/api.txt
parent834a041e67b61f84b095c0796ed085f4c4785b0a (diff)
Fixed #8979 -- Made a bunch of typo/formatting fixes to the docs. Thanks, ramiro
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/templates/api.txt')
-rw-r--r--docs/ref/templates/api.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index 80614ae35c..a220c79a96 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -29,7 +29,9 @@ content from a database or enable access to other template tags.
Block tags are surrounded by ``"{%"`` and ``"%}"``.
-Example template with block tags::
+Example template with block tags:
+
+.. code-block:: html+django
{% if is_logged_in %}Thanks for logging in!{% else %}Please log in.{% endif %}
@@ -37,7 +39,9 @@ A **variable** is a symbol within a template that outputs a value.
Variable tags are surrounded by ``"{{"`` and ``"}}"``.
-Example template with variables::
+Example template with variables:
+
+.. code-block:: html+django
My first name is {{ first_name }}. My last name is {{ last_name }}.
@@ -566,7 +570,7 @@ returns the resulting string::
The ``render_to_string`` shortcut takes one required argument --
``template_name``, which should be the name of the template to load
-and render -- and two optional arguments::
+and render -- and two optional arguments:
dictionary
A dictionary to be used as variables and values for the