From a78bbe22d727bd4e1432e30bece07313ef6007a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 10 Aug 2017 14:22:05 +0200 Subject: [PATCH] Add link to Go issue --- content/functions/scratch.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/functions/scratch.md b/content/functions/scratch.md index f69d3b760..2dc858c99 100644 --- a/content/functions/scratch.md +++ b/content/functions/scratch.md @@ -22,6 +22,10 @@ aliases: [/extras/scratch/,/doc/scratch/] In most cases you can do well without `Scratch`, but there are some use cases that aren't solvable with Go's templates without `Scratch`'s help, due to scoping issues. +{{% note %}} +See [this Go issue](https://github.com/golang/go/issues/10608) for the main motivation behind Scratch. +{{% /note %}} + `Scratch` is added to both `Page` and `Shortcode` -- with following methods: * `Set` and `Add` takes a `key` and the `value` to add.