Skip to content

Commit

Permalink
fix template path bug, pass the filepath in executeroptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamRasal committed Jan 3, 2023
1 parent e66821b commit b03a90d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v2/pkg/templates/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b03a90d

Please sign in to comment.