fix template path bug, pass the filepath in executeroptions

dev
shubhamrasal 2023-01-03 12:17:56 +05:30
parent e66821b49f
commit b03a90df50
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func Parse(filePath string, preprocessor Preprocessor, options protocols.Execute
} }
} }
defer reader.Close() defer reader.Close()
options.TemplatePath = filePath
template, err := ParseTemplateFromReader(reader, preprocessor, options) template, err := ParseTemplateFromReader(reader, preprocessor, options)
if err != nil { if err != nil {
return nil, err return nil, err