Inlcude example of newScratch.Values

This commit is contained in:
Joe Mooring 2023-11-15 13:05:54 -08:00 committed by Joe Mooring
parent 9bb7f8c785
commit 699de883d1

View File

@ -105,3 +105,11 @@ Delete
Values
: 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 }}
```