mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 11:54:40 -04:00
parent
2fd83db96b
commit
f74a25b927
@ -113,6 +113,11 @@ Removes the given key
|
|||||||
{{ .Scratch.Delete "greetings" }}
|
{{ .Scratch.Delete "greetings" }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### .Values
|
||||||
|
|
||||||
|
`Values` returns the raw backing map. Note that you should just use this method on the locally scoped `Scratch` instances you obtain via `newScratch`, not
|
||||||
|
`.Page.Scratch` etc., as that will lead to concurrency issues.
|
||||||
|
|
||||||
## Scope
|
## Scope
|
||||||
The scope of the backing data is global for the given `Page` or `Shortcode`, and spans partial and shortcode includes.
|
The scope of the backing data is global for the given `Page` or `Shortcode`, and spans partial and shortcode includes.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user