diff --git a/v2/pkg/templates/compile.go b/v2/pkg/templates/compile.go index dfe58b26..a44cd5c4 100644 --- a/v2/pkg/templates/compile.go +++ b/v2/pkg/templates/compile.go @@ -52,6 +52,7 @@ func Parse(filePath string, preprocessor Preprocessor, options protocols.Execute } } defer reader.Close() + options.TemplatePath = filePath template, err := ParseTemplateFromReader(reader, preprocessor, options) if err != nil { return nil, err