mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-18 08:14:48 +00:00
Miscellaneous updates
This commit is contained in:
1 parent
80b2241f9e
commit
508666575f
37 files changed
+204
-440
No files matched your search
@@ -10,12 +10,12 @@ action:
|
||||
signatures: [SHORTCODE.Scratch]
|
||||
---
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
[assign values to variables]: https://go.dev/doc/go1.11#text/template
|
||||
[assign values to template variables]: https://go.dev/doc/go1.11#text/template
|
||||
[`newScratch`]: functions/collections/newscratch
|
||||
{{% /note %}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user