mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 17:36:59 -04:00
Add link to Go issue
This commit is contained in:
parent
31d1ef4037
commit
a78bbe22d7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user