mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
parser: document that @@
can be used to represent a literal @
in $tmpl()
templates (#21983)
This commit is contained in:
parent
1a8eff8d2b
commit
44d2647e2d
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
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: `@@`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue