From 13b3e9e42b5dede51939443e6a97a88efa12c57c Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 11 Nov 2024 08:09:26 -0600 Subject: [PATCH] allow partials throughout the project, not jsut partials file --- cli/htmgo/tasks/astgen/entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/htmgo/tasks/astgen/entry.go b/cli/htmgo/tasks/astgen/entry.go index d53dc85..07b8e29 100644 --- a/cli/htmgo/tasks/astgen/entry.go +++ b/cli/htmgo/tasks/astgen/entry.go @@ -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" })