parser: document that @@ can be used to represent a literal @ in $tmpl() templates (#21983)

This commit is contained in:
Martin Skou 2024-08-03 21:34:28 +02:00 committed by GitHub
parent 1a8eff8d2b
commit 44d2647e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,3 +157,8 @@ where you can insert your src
All variables, which are declared before the $tmpl can be used through the `@{my_var}` syntax. All variables, which are declared before the $tmpl can be used through the `@{my_var}` syntax.
It's also possible to use properties of structs here like `@{my_struct.prop}`. It's also possible to use properties of structs here like `@{my_struct.prop}`.
# Escaping
The `@` symbol starts a template directive. If you need to use `@` as a regular
character within a template, escape it by using a double `@` like this: `@@`.