// Code generated by qtc from "base.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. // This is a base page template. All the other template pages implement this interface. // //line templates/base.qtpl:3 package templates //line templates/base.qtpl:3 import "strconv" //line templates/base.qtpl:4 import "time" //line templates/base.qtpl:6 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/base.qtpl:6 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/base.qtpl:7 var Slug = "" //line templates/base.qtpl:11 type Page interface { //line templates/base.qtpl:11 Title() string //line templates/base.qtpl:11 StreamTitle(qw422016 *qt422016.Writer) //line templates/base.qtpl:11 WriteTitle(qq422016 qtio422016.Writer) //line templates/base.qtpl:11 Content() string //line templates/base.qtpl:11 StreamContent(qw422016 *qt422016.Writer) //line templates/base.qtpl:11 WriteContent(qq422016 qtio422016.Writer) //line templates/base.qtpl:11 Script() string //line templates/base.qtpl:11 StreamScript(qw422016 *qt422016.Writer) //line templates/base.qtpl:11 WriteScript(qq422016 qtio422016.Writer) //line templates/base.qtpl:11 Navbar() string //line templates/base.qtpl:11 StreamNavbar(qw422016 *qt422016.Writer) //line templates/base.qtpl:11 WriteNavbar(qq422016 qtio422016.Writer) //line templates/base.qtpl:11 } //line templates/base.qtpl:20 func FromUInttoString(u *uint) string { if u != nil { return strconv.FormatUint(uint64(*u), 10) } return "" } //line templates/base.qtpl:28 func TimeFormat(t time.Time) string { return t.Format("02.01.2006") } //line templates/base.qtpl:33 func Ignore[T any](v T, _ error) T { return v } // Page prints a page implementing Page interface. //line templates/base.qtpl:39 func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { //line templates/base.qtpl:39 qw422016.N().S(`