diff --git a/framework/tooling/mhtml/Taskfile.yml b/framework/tooling/mhtml/Taskfile.yml
index 5ec7dfe..e843bb4 100644
--- a/framework/tooling/mhtml/Taskfile.yml
+++ b/framework/tooling/mhtml/Taskfile.yml
@@ -33,8 +33,8 @@ tasks:
desc: Build the project
cmds:
- rm -rf ./dist
- - mkdir -p ./dist/assets
- - cp -r ./assets ./dist/assets
+ - mkdir -p ./dist/assets/dist
+ - cp -r ./assets/dist/* ./dist/assets/dist/
- go build -o "./dist" .
- echo "Build successful"
diff --git a/starter-template/partials/load/generated.go b/starter-template/partials/load/generated.go
index 86892e2..90eccd8 100644
--- a/starter-template/partials/load/generated.go
+++ b/starter-template/partials/load/generated.go
@@ -9,25 +9,25 @@ import "starter-template/partials/sheet"
func GetPartialFromContext(ctx *fiber.Ctx) *h.Partial {
path := ctx.Path()
- if path == "NewsSheet" || path == "/github.com/maddalax/mhtml/starter-template/partials.NewsSheet" {
+ if path == "NewsSheet" || path == "/starter-template/partials.NewsSheet" {
return partials.NewsSheet(ctx)
}
- if path == "NewsSheetOpenCount" || path == "/github.com/maddalax/mhtml/starter-template/partials.NewsSheetOpenCount" {
+ if path == "NewsSheetOpenCount" || path == "/starter-template/partials.NewsSheetOpenCount" {
return partials.NewsSheetOpenCount(ctx)
}
- if path == "Create" || path == "/github.com/maddalax/mhtml/starter-template/partials/patient.Create" {
+ if path == "Create" || path == "/starter-template/partials/patient.Create" {
return patient.Create(ctx)
}
- if path == "List" || path == "/github.com/maddalax/mhtml/starter-template/partials/patient.List" {
+ if path == "List" || path == "/starter-template/partials/patient.List" {
return patient.List(ctx)
}
- if path == "AddPatientSheetPartial" || path == "/github.com/maddalax/mhtml/starter-template/partials/patient.AddPatientSheetPartial" {
+ if path == "AddPatientSheetPartial" || path == "/starter-template/partials/patient.AddPatientSheetPartial" {
return patient.AddPatientSheetPartial(ctx)
}
- if path == "ValidateForm" || path == "/github.com/maddalax/mhtml/starter-template/partials/patient.ValidateForm" {
+ if path == "ValidateForm" || path == "/starter-template/partials/patient.ValidateForm" {
return patient.ValidateForm(ctx)
}
- if path == "Close" || path == "/github.com/maddalax/mhtml/starter-template/partials/sheet.Close" {
+ if path == "Close" || path == "/starter-template/partials/sheet.Close" {
return sheet.Close(ctx)
}
return nil