mirror of https://github.com/vapor/docs.git
add dumpContext tag (#712)
Co-authored-by: Marius Seufzer <marius.seufzer@protonmail.com> Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
This commit is contained in:
parent
4d995b4379
commit
cb8874b5cb
|
|
@ -272,5 +272,15 @@ The `#unsafeHTML` tag acts like a variable tag - e.g. `#(variable)`. However it
|
|||
The time is #unsafeHTML(styledTitle)
|
||||
```
|
||||
|
||||
!!! note
|
||||
!!! note
|
||||
You should be careful when using this tag to ensure that the variable you provide it does not expose your users to an XSS attack.
|
||||
|
||||
#### `#dumpContext`
|
||||
|
||||
The `#dumpContext` tag renders the whole context to a human readable string. Use this tag to debug what is being
|
||||
provided as context to the current rendering.
|
||||
|
||||
```leaf
|
||||
Hello, world!
|
||||
#dumpContext
|
||||
```
|
||||
Loading…
Reference in New Issue