mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 12:32:06 -05:00
893 B
893 B
title | description | categories | keywords | action | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Scratch | Returns a "scratch pad" scoped to the shortcode to store and manipulate data. |
|
The Scratch
method within a shortcode creates a scratch pad to store and manipulate data. The scratch pad is scoped to the shortcode, and is reset on server rebuilds.
{{% note %}}
With the introduction of the newScratch
function, and the ability to assign values to template variables after initialization, the Scratch
method within a shortcode is obsolete.
{{% /note %}}
{{% include "methods/page/_common/scratch-methods.md" %}}