package layouts import ( "strings" "git.grosinger.net/tgrosinger/saasitone/pkg/page" "git.grosinger.net/tgrosinger/saasitone/pkg/funcmap" "git.grosinger.net/tgrosinger/saasitone/templ/components" ) templ Main(p page.Page, content templ.Component) { @metatags(p) @css() @js()
if p.Title != "" {

{ p.Title }

} @components.Messages(p) @content
@footer(p) } templ link(p page.Page, url, text, classes string) { { text } } templ search(p page.Page) { } templ metatags(p page.Page) { if p.Title != "" { { p.AppName } | { p.Title } } else { { p.AppName } } if p.Metatags.Description != "" { } if len(p.Metatags.Keywords) > 0 { } } templ css() { } templ js() { } templ footer(p page.Page) { if p.CSRF != "" { } }