diff options
| author | tim-mccurrach <34194722+tim-mccurrach@users.noreply.github.com> | 2021-02-26 20:02:37 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-02-26 21:03:02 +0100 |
| commit | 7e6e822162c0b567e81d7b4c3a61e6f1041be49f (patch) | |
| tree | 7274adb545d82da75d088431bf541577e7c976d6 /docs/ref | |
| parent | 230d5b16b2a861e5ee1943d7b6e417d14aee5e4b (diff) | |
[3.2.x] Fixed #20423 -- Doc'd that DTL variable names may not be a number.
Backport of 7587139d35b630a19fdc55a5f3789475e5ed26c8 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/language.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/templates/language.txt b/docs/ref/templates/language.txt index d46a991c9e..04b363c0cf 100644 --- a/docs/ref/templates/language.txt +++ b/docs/ref/templates/language.txt @@ -79,10 +79,10 @@ Variables Variables look like this: ``{{ variable }}``. When the template engine encounters a variable, it evaluates that variable and replaces it with the result. Variable names consist of any combination of alphanumeric characters -and the underscore (``"_"``) but may not start with an 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.* +and the underscore (``"_"``) but may not start with an underscore, and may not +be a number. 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. |
