mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-19 06:15:07 +00:00
Update pages describing Store methods and functions
This commit is contained in:
1 parent
fa7643d1be
commit
6a7fd42ff7
19 files changed
+172
-255
No files matched your search
@@ -19,14 +19,3 @@ Beginning with v0.139.0 the `SHORTCODE.Scratch` method is aliased to `SHORTCODE.
|
||||
|
||||
[`SHORTCODE.Store`]: /methods/shortcode/store/
|
||||
{{% /deprecated-in %}}
|
||||
|
||||
The `Scratch` method within a shortcode creates a [scratch pad](g) to store and manipulate data. The scratch pad is scoped to the shortcode.
|
||||
|
||||
{{% 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.
|
||||
|
||||
[assign values to template variables]: https://go.dev/doc/go1.11#text/template
|
||||
[`newScratch`]: /functions/collections/newscratch/
|
||||
{{% /note %}}
|
||||
|
||||
{{% include "methods/page/_common/scratch-methods.md" %}}
|
||||
Reference in new issue
Block a user