Add link to Go issue

This commit is contained in:
Bjørn Erik Pedersen 2017-08-10 14:22:05 +02:00
parent 31d1ef4037
commit a78bbe22d7

View File

@ -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.