hugo/docs/content/en/methods/page/Scratch.md
Bjørn Erik Pedersen 5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
2024-01-27 10:48:57 +01:00

835 B

title description categories keywords action aliases
Scratch Creates a "scratch pad" on the given page to store and manipulate data.
related returnType signatures
methods/page/Store
functions/collections/NewScratch
maps.Scratch
PAGE.Scratch
/extras/scratch/
/doc/scratch/
/functions/scratch

The Scratch method on a Page object creates a scratch pad to store and manipulate data. To create a scratch pad that is not reset on server rebuilds, use the Store method instead.

To create a locally scoped scratch pad that is not attached to a Page object, use the newScratch function.

{{% include "methods/page/_common/scratch-methods.md" %}}