summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-05-29 18:50:12 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-05-29 19:51:49 +0200
commit2919a6a503f7b369154d6eb787023a1fe58a9ad4 (patch)
treed2d1a4a73d67471a5ae62b394f6055aa5288f601 /docs
parent432885c499849efb29d3e50196f377fe0e908333 (diff)
common/maps: Add Scratch.Values
Fixes #7335
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/functions/scratch.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/en/functions/scratch.md b/docs/content/en/functions/scratch.md
index 1a64bb2e3..10623b2cb 100644
--- a/docs/content/en/functions/scratch.md
+++ b/docs/content/en/functions/scratch.md
@@ -113,6 +113,11 @@ Removes the given key
{{ .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
The scope of the backing data is global for the given `Page` or `Shortcode`, and spans partial and shortcode includes.