From 7a0a02023d2cd207b232a792b2fc941bac755514 Mon Sep 17 00:00:00 2001 From: bep Date: Sun, 19 Apr 2015 14:50:24 +0200 Subject: [PATCH] Add shortcut to Scratch from shortcode --- content/extras/scratch.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/extras/scratch.md b/content/extras/scratch.md index de591caae..e3c1d9f40 100644 --- a/content/extras/scratch.md +++ b/content/extras/scratch.md @@ -40,6 +40,5 @@ The usage is best illustrated with some samples: ``` **Note:** The examples above uses the special `$` variable, which refers to the top-level node. This is the behavior you most likely want, and will help remove some confusion when using `Scratch` inside page range loops -- and you start inadvertently calling the wrong `Scratch`. But there may be use cases for `{{ .Scratch.Add "key" "some value" }}`. -**Note:** To use `Scratch` in a `shortcode`, you will have to use the shortcode's Page's `Scratch`: `{{ .Page.Scratch.Add "a1" 12 }}` or `{{ $.Page.Scratch.Add "a1" 12 }}`.