package template func layoutLinkClass(isActive bool) string { common := "text-2xl p-2 text-gray-900 decoration-yellow-400 decoration-[0.25rem] hover:bg-gray-200 rounded-lg" if isActive { return common + " " + "underline" } return common + " " + "hover:underline" } templ Layout(slot templ.Component, user templ.Component, loggedIn bool, path string) { SpendSparrow
SpendSparrow logo SpendSparrow
@user
// Content
if loggedIn { }
if slot != nil { @slot }
}