mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 04:55:43 -04:00
Inlcude example of newScratch.Values
This commit is contained in:
parent
9bb7f8c785
commit
699de883d1
@ -105,3 +105,11 @@ Delete
|
|||||||
|
|
||||||
Values
|
Values
|
||||||
: Returns the raw backing map. Do not use with `Scratch` or `Store` methods on a `Page` object due to concurrency issues.
|
: Returns the raw backing map. Do not use with `Scratch` or `Store` methods on a `Page` object due to concurrency issues.
|
||||||
|
|
||||||
|
```go-html-template
|
||||||
|
{{ $s := newScratch }}
|
||||||
|
{{ $s.SetInMap "greetings" "english" "Hello" }}
|
||||||
|
{{ $s.SetInMap "greetings" "french" "Bonjour" }}
|
||||||
|
|
||||||
|
{{ $map := $s.Values }}
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user