package libmkwebpage import ( "embed" "io/fs" "net/http" ) func (w *Webpage) NewStaticFiles(pattern string, static embed.FS, dynamic fs.FS) *Webpage { w.HandlerDynamic("GET "+pattern, http.FileServerFS(dynamic)) w.HandlerStatic("GET "+pattern, http.FileServerFS(static)) w.staticFilePrefix = pattern return w }