diff --git a/main.go b/main.go index afbad2c..cc02e00 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ package main import ( - "embed" "log" "os" "path" @@ -19,9 +18,6 @@ import ( "github.com/julienschmidt/httprouter" ) -//go:embed all:templates -var resources embed.FS - // The main function func main() { app := core.New() @@ -47,7 +43,6 @@ func main() { app.SetGormConfig(config.GetGormConfig()) app.SetCacheConfig(config.GetCacheConfig()) app.Bootstrap() - app.RegisterTemplates(resources) registerGlobalHooks() registerRoutes() registerEvents() diff --git a/templates/sample.html b/templates/sample.html deleted file mode 100644 index 0ccd602..0000000 --- a/templates/sample.html +++ /dev/null @@ -1,10 +0,0 @@ - - - {{template "head" "Sample"}} - - {{template "title" .TheTitle}} -
- Sample page! -
- - \ No newline at end of file