embed web files for build

This commit is contained in:
nahakubuilde
2025-08-26 19:55:28 +01:00
parent 4cafd9848f
commit 6fb6054803
4 changed files with 77 additions and 29 deletions

11
web/assets_embed.go Normal file
View File

@@ -0,0 +1,11 @@
package webassets
import "embed"
// TemplatesFS embeds all HTML templates under web/templates.
//go:embed templates/*.html
var TemplatesFS embed.FS
// StaticFS embeds all static assets under web/static.
//go:embed static/*
var StaticFS embed.FS