allow partials throughout the project, not jsut partials file

This commit is contained in:
maddalax 2024-11-11 08:09:26 -06:00
parent b3834bf559
commit 13b3e9e42b

View file

@ -294,7 +294,7 @@ func writePartialsFile() {
config := dirutil.GetConfig()
cwd := process.GetWorkingDir()
partialPath := filepath.Join(cwd, "partials")
partialPath := filepath.Join(cwd)
partials, err := findPublicFuncsReturningHPartial(partialPath, func(partial Partial) bool {
return partial.FuncName != "GetPartialFromContext"
})