summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2010-09-13 05:08:24 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2010-09-13 05:08:24 +0000
commit783656cf5ba0e38fb0bf915019e6a720d47a9baf (patch)
tree46ee611ca5e01311ee2a1acb3e8edeb91630b430 /docs
parent3d99526fc2b6b6d25d889ce206ea26c7036944b8 (diff)
Documented the permitted syntax for template variable names.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/templates.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 492d23d716..c3fdd2cf0e 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -79,7 +79,11 @@ Variables
Variables look like this: ``{{ variable }}``. When the template engine
encounters a variable, it evaluates that variable and replaces it with the
-result.
+result. Variable names consist of any combination of alphanumeric characters
+and the underscore (``"_"``). The dot (``"."``) also appears in variable
+sections, although that has a special meaning, as indicated below.
+Importantly, *you cannot have spaces or punctuation characters in variable
+names.*
Use a dot (``.``) to access attributes of a variable.