package templates import "git.jmbit.de/jmb/goipam/utils" // wrapBase handles the basics of HTML templ wrapBase(metaContent utils.MetaContent, title string) { @head(title)
@navbar(metaContent.IsLoggedIn) { children... } @footer(metaContent.Timestamp) } templ Login(metaContent utils.MetaContent, title string) { @wrapBase(metaContent, title) { @loginForm() } } templ Index(metaContent utils.MetaContent) { @wrapBase(metaContent, "goipam") {Placeholder Text. This goipam thingy was made using Go, Gin, Gorm, Templ and HTMX. It's put together into this mess to prevent me from having write a bunch of boilerplate code everytime I start a new Project