From c49195c69be48759ae41a035df52687aa58e2a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 29 May 2020 18:50:12 +0200 Subject: [PATCH] common/maps: Add Scratch.Values Fixes #7335 --- content/en/functions/scratch.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/functions/scratch.md b/content/en/functions/scratch.md index 1a64bb2e3..10623b2cb 100644 --- a/content/en/functions/scratch.md +++ b/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.