newsbot-portal/internal/views/layout/withTemplate.templ

26 lines
552 B
Plaintext

package layout
import (
"git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
bl "git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma/layout"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
"git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma/html"
)
templ WithTemplate(meta models.HeaderMetaTags) {
@html.Doctype()
@html.New("en") {
@html.NewHeader() {
@header(meta)
}
@html.NewBody(){
@navBar()
@html.Br()
@bl.Container(bulma.BreakpointDefault) {
{ children... }
}
@footer()
}
}
}