I am not familiar with Go and would appreciate some clarification. Does the local
in NewScratch
mean that its scope is limited to the current template?
maybe more precise local to the template execution for the a page.
Stored values are not accessible when executing the same template for a different page. Also not for partials called from that template except if you pass this as an argument.
in most cases you can use local variables instead of that scratch pad
Yes, that’s exactly what I originally understood, but I used imprecise wording in my question. Thank you!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.