diff options
| author | Tim Graham <timograham@gmail.com> | 2012-09-01 09:24:39 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-09-01 09:24:39 -0400 |
| commit | 74c025d0285450bf277afbee095172af54562ab6 (patch) | |
| tree | c70096cc7b0d726759989895fb441b9095145b44 /docs/ref/templates/api.txt | |
| parent | 5faadea439a405ecd80ec06c0d6a769e47ebeec2 (diff) | |
Fixed #13608 - Noted that template lookups use literal values.
Diffstat (limited to 'docs/ref/templates/api.txt')
| -rw-r--r-- | docs/ref/templates/api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 9d2954d22f..48bd346788 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -125,6 +125,10 @@ dot in a variable name, it tries the following lookups, in this order: * Attribute lookup. Example: ``foo.bar`` * List-index lookup. Example: ``foo[bar]`` +Note that "bar" in a template expression like ``{{ foo.bar }}`` will be +interpreted as a literal string and not using the value of the variable "bar", +if one exists in the template context. + The template system uses the first lookup type that works. It's short-circuit logic. Here are a few examples:: |
