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:
Marius Seufzer 2022-08-18 07:35:42 -07:00 committed by GitHub
parent 4d995b4379
commit cb8874b5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -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
```