-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Store / .Scratch lost in calling tree from bottom to top #9845
Comments
No. I'm not totally sure what you're asking for, but I suspect it's related to #9339 ...? |
not related, I tryed to do something like this
.Scratch.Get returns nil. |
a.html
{{ partial "b.html" .}}
{{ $sp := .Scratch.Get "sprites" }}
b.html
{{ partial "c.html" .}}
c.html
{{ $.Scratch.SetInMap "home" "svg/home.svh" }} You're never setting Note, I'm 100% sure that this works as designed. I would be happy to help you troubleshoot, but let's take that on https://discourse.gohugo.io/ |
MUST come back, there is an error with list / pagination, my workaround 👍🏻 part of list.html
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hugo version 0.98 and before
Does this issue reproduce with the latest release?
YES
I have a partial templates "tree" a calls b calls c (no partialCached!)
Setting .Scratch or .Store in c is not given back to a, where Scratch or .Store is given back empty.
If .Store and .Scratch belongs to a page, the values should return to the upper caller template.
Is the dot parameter for the called partial read only???
The text was updated successfully, but these errors were encountered: