mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 12:24:41 -04:00
parent
78072df81c
commit
c49195c69b
@ -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