diff options
Diffstat (limited to 'templates/base.qtpl.go')
-rw-r--r-- | templates/base.qtpl.go | 145 |
1 files changed, 75 insertions, 70 deletions
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go index 6d4d0a0..c5570c8 100644 --- a/templates/base.qtpl.go +++ b/templates/base.qtpl.go @@ -71,174 +71,179 @@ func TimeFormat(t time.Time) string { return t.Format("2006-01-02") } +//line base.qtpl:33 +func Ignore[T any](v T, _ error) T { + return v +} + // Page prints a page implementing Page interface. -//line base.qtpl:34 +//line base.qtpl:39 func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { -//line base.qtpl:34 +//line base.qtpl:39 qw422016.N().S(` <html lang="en"> <head> <meta charset="utf-8"> <link rel="icon" href="data:,"> <title>cerrado | `) -//line base.qtpl:39 +//line base.qtpl:44 p.StreamTitle(qw422016) -//line base.qtpl:39 +//line base.qtpl:44 qw422016.N().S(`</title> <link rel="stylesheet" href="/static/main`) -//line base.qtpl:40 +//line base.qtpl:45 qw422016.E().S(Slug) -//line base.qtpl:40 +//line base.qtpl:45 qw422016.N().S(`.css"> <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> `) -//line base.qtpl:44 +//line base.qtpl:49 p.StreamNavbar(qw422016) -//line base.qtpl:44 +//line base.qtpl:49 qw422016.N().S(` <div class="container"> `) -//line base.qtpl:46 +//line base.qtpl:51 p.StreamContent(qw422016) -//line base.qtpl:46 +//line base.qtpl:51 qw422016.N().S(` </div> </body> `) -//line base.qtpl:49 +//line base.qtpl:54 p.StreamScript(qw422016) -//line base.qtpl:49 +//line base.qtpl:54 qw422016.N().S(` </html> `) -//line base.qtpl:51 +//line base.qtpl:56 } -//line base.qtpl:51 +//line base.qtpl:56 func WritePageTemplate(qq422016 qtio422016.Writer, p Page) { -//line base.qtpl:51 +//line base.qtpl:56 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:51 +//line base.qtpl:56 StreamPageTemplate(qw422016, p) -//line base.qtpl:51 +//line base.qtpl:56 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:51 +//line base.qtpl:56 } -//line base.qtpl:51 +//line base.qtpl:56 func PageTemplate(p Page) string { -//line base.qtpl:51 +//line base.qtpl:56 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:51 +//line base.qtpl:56 WritePageTemplate(qb422016, p) -//line base.qtpl:51 +//line base.qtpl:56 qs422016 := string(qb422016.B) -//line base.qtpl:51 +//line base.qtpl:56 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:51 +//line base.qtpl:56 return qs422016 -//line base.qtpl:51 +//line base.qtpl:56 } -//line base.qtpl:53 +//line base.qtpl:58 type BasePage struct{} -//line base.qtpl:54 +//line base.qtpl:59 func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) { -//line base.qtpl:54 +//line base.qtpl:59 qw422016.N().S(`Empty`) -//line base.qtpl:54 +//line base.qtpl:59 } -//line base.qtpl:54 +//line base.qtpl:59 func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) { -//line base.qtpl:54 +//line base.qtpl:59 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:54 +//line base.qtpl:59 p.StreamTitle(qw422016) -//line base.qtpl:54 +//line base.qtpl:59 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:54 +//line base.qtpl:59 } -//line base.qtpl:54 +//line base.qtpl:59 func (p *BasePage) Title() string { -//line base.qtpl:54 +//line base.qtpl:59 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:54 +//line base.qtpl:59 p.WriteTitle(qb422016) -//line base.qtpl:54 +//line base.qtpl:59 qs422016 := string(qb422016.B) -//line base.qtpl:54 +//line base.qtpl:59 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:54 +//line base.qtpl:59 return qs422016 -//line base.qtpl:54 +//line base.qtpl:59 } -//line base.qtpl:55 +//line base.qtpl:60 func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) { -//line base.qtpl:55 +//line base.qtpl:60 qw422016.N().S(`HelloWorld`) -//line base.qtpl:55 +//line base.qtpl:60 } -//line base.qtpl:55 +//line base.qtpl:60 func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) { -//line base.qtpl:55 +//line base.qtpl:60 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:55 +//line base.qtpl:60 p.StreamBody(qw422016) -//line base.qtpl:55 +//line base.qtpl:60 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:55 +//line base.qtpl:60 } -//line base.qtpl:55 +//line base.qtpl:60 func (p *BasePage) Body() string { -//line base.qtpl:55 +//line base.qtpl:60 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:55 +//line base.qtpl:60 p.WriteBody(qb422016) -//line base.qtpl:55 +//line base.qtpl:60 qs422016 := string(qb422016.B) -//line base.qtpl:55 +//line base.qtpl:60 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:55 +//line base.qtpl:60 return qs422016 -//line base.qtpl:55 +//line base.qtpl:60 } -//line base.qtpl:56 +//line base.qtpl:61 func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) { -//line base.qtpl:56 +//line base.qtpl:61 } -//line base.qtpl:56 +//line base.qtpl:61 func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) { -//line base.qtpl:56 +//line base.qtpl:61 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:56 +//line base.qtpl:61 p.StreamScript(qw422016) -//line base.qtpl:56 +//line base.qtpl:61 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:56 +//line base.qtpl:61 } -//line base.qtpl:56 +//line base.qtpl:61 func (p *BasePage) Script() string { -//line base.qtpl:56 +//line base.qtpl:61 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:56 +//line base.qtpl:61 p.WriteScript(qb422016) -//line base.qtpl:56 +//line base.qtpl:61 qs422016 := string(qb422016.B) -//line base.qtpl:56 +//line base.qtpl:61 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:56 +//line base.qtpl:61 return qs422016 -//line base.qtpl:56 +//line base.qtpl:61 } |