mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 01:05:32 +00:00
Index functions
This commit is contained in:
4
lenz.go
4
lenz.go
@@ -43,12 +43,14 @@ func main() {
|
||||
}
|
||||
|
||||
// INFO: the lib, engine and storage objects passed to the server should never be recreated.
|
||||
err = xmlmodels.New(dir, commit.Hash)
|
||||
lib, err := xmlmodels.Parse(dir, commit.Hash)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
engine := templating.New(&views.LayoutFS, &views.RoutesFS)
|
||||
engine.AddFuncs(lib.FuncMap())
|
||||
|
||||
storage := memory.New(memory.Config{
|
||||
GCInterval: 24 * time.Hour,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user