Files
gohugoio--hugo/docs/content/en/methods/shortcode/Scratch.md
T
2026-07-13 11:58:46 +08:00

803 B

title, description, categories, keywords, params, expiryDate
title description categories keywords params expiryDate
Scratch Returns a persistent data structure for storing and manipulating keyed values, scoped to the current shortcode.
functions_and_methods
returnType signatures
maps.Scratch
SHORTCODE.Scratch
2026-11-18

{{< deprecated-in 0.139.0 >}} Use the SHORTCODE.Store method instead.

This is a soft deprecation. This method will be removed in a future release, but the removal date has not been established. Although Hugo will not emit a warning if you continue to use this method, you should begin using SHORTCODE.Store as soon as possible.

Beginning with v0.139.0 the SHORTCODE.Scratch method is aliased to SHORTCODE.Store. {{< /deprecated-in >}}