You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two loaders, first is NewLocalFileSystemLoader and second is NewFSLoader with embed.FS, when I use FromFile, I could get right result, but FromCache always got error.
From source code https://github.com/flosch/pongo2/blob/master/template_sets.go#L140, I add a debg print
I have two loaders, first is
NewLocalFileSystemLoader
and second isNewFSLoader
with embed.FS, when I useFromFile
, I could get right result, butFromCache
always got error.From source code https://github.com/flosch/pongo2/blob/master/template_sets.go#L140, I add a debg print
FromFile
got abspath and relpath, butFromCache
always got abspath, the problem is at https://github.com/flosch/pongo2/blob/master/template_sets.go#L175, why use cleanedFilename with first loader instead of filename?The text was updated successfully, but these errors were encountered: