resources: Add data context to the key in ExecuteAsTemplate - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 18cb21ff2e4a60e7094908e4d6113a9d5a086316
DIR parent df298558a5a5b747288d9656402af85e0ac75a43
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 11 Mar 2020 22:21:16 +0100
resources: Add data context to the key in ExecuteAsTemplate
Fixes #7046
Diffstat:
M resources/resource_transformers/te… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/resources/resource_transformers/templates/execute_as_template.go b/resources/resource_transformers/templates/execute_as_template.go
@@ -48,7 +48,7 @@ type executeAsTemplateTransform struct {
}
func (t *executeAsTemplateTransform) Key() internal.ResourceTransformationKey {
- return internal.NewResourceTransformationKey("execute-as-template", t.targetPath)
+ return internal.NewResourceTransformationKey("execute-as-template", t.targetPath, t.data)
}
func (t *executeAsTemplateTransform) Transform(ctx *resources.ResourceTransformationCtx) error {