From c7a8aa113a914e70e027fea93265c7232b865b5e Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 7 Jun 2024 19:33:07 +0200 Subject: feat: Add compression --- templates/base.qtpl.go | 138 +++++++++++++++++++++++++------------------------ 1 file changed, 70 insertions(+), 68 deletions(-) (limited to 'templates/base.qtpl.go') diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go index c5570c8..5f39e8d 100644 --- a/templates/base.qtpl.go +++ b/templates/base.qtpl.go @@ -82,168 +82,170 @@ func Ignore[T any](v T, _ error) T { func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { //line base.qtpl:39 qw422016.N().S(` + cerrado | `) -//line base.qtpl:44 +//line base.qtpl:45 p.StreamTitle(qw422016) -//line base.qtpl:44 +//line base.qtpl:45 qw422016.N().S(` + `) -//line base.qtpl:49 +//line base.qtpl:51 p.StreamNavbar(qw422016) -//line base.qtpl:49 +//line base.qtpl:51 qw422016.N().S(`
`) -//line base.qtpl:51 +//line base.qtpl:53 p.StreamContent(qw422016) -//line base.qtpl:51 +//line base.qtpl:53 qw422016.N().S(`
`) -//line base.qtpl:54 +//line base.qtpl:56 p.StreamScript(qw422016) -//line base.qtpl:54 +//line base.qtpl:56 qw422016.N().S(` `) -//line base.qtpl:56 +//line base.qtpl:58 } -//line base.qtpl:56 +//line base.qtpl:58 func WritePageTemplate(qq422016 qtio422016.Writer, p Page) { -//line base.qtpl:56 +//line base.qtpl:58 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:56 +//line base.qtpl:58 StreamPageTemplate(qw422016, p) -//line base.qtpl:56 +//line base.qtpl:58 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:56 +//line base.qtpl:58 } -//line base.qtpl:56 +//line base.qtpl:58 func PageTemplate(p Page) string { -//line base.qtpl:56 +//line base.qtpl:58 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:56 +//line base.qtpl:58 WritePageTemplate(qb422016, p) -//line base.qtpl:56 +//line base.qtpl:58 qs422016 := string(qb422016.B) -//line base.qtpl:56 +//line base.qtpl:58 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:56 +//line base.qtpl:58 return qs422016 -//line base.qtpl:56 +//line base.qtpl:58 } -//line base.qtpl:58 +//line base.qtpl:60 type BasePage struct{} -//line base.qtpl:59 +//line base.qtpl:61 func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) { -//line base.qtpl:59 +//line base.qtpl:61 qw422016.N().S(`Empty`) -//line base.qtpl:59 +//line base.qtpl:61 } -//line base.qtpl:59 +//line base.qtpl:61 func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) { -//line base.qtpl:59 +//line base.qtpl:61 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:59 +//line base.qtpl:61 p.StreamTitle(qw422016) -//line base.qtpl:59 +//line base.qtpl:61 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:59 +//line base.qtpl:61 } -//line base.qtpl:59 +//line base.qtpl:61 func (p *BasePage) Title() string { -//line base.qtpl:59 +//line base.qtpl:61 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:59 +//line base.qtpl:61 p.WriteTitle(qb422016) -//line base.qtpl:59 +//line base.qtpl:61 qs422016 := string(qb422016.B) -//line base.qtpl:59 +//line base.qtpl:61 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:59 +//line base.qtpl:61 return qs422016 -//line base.qtpl:59 +//line base.qtpl:61 } -//line base.qtpl:60 +//line base.qtpl:62 func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) { -//line base.qtpl:60 +//line base.qtpl:62 qw422016.N().S(`HelloWorld`) -//line base.qtpl:60 +//line base.qtpl:62 } -//line base.qtpl:60 +//line base.qtpl:62 func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) { -//line base.qtpl:60 +//line base.qtpl:62 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:60 +//line base.qtpl:62 p.StreamBody(qw422016) -//line base.qtpl:60 +//line base.qtpl:62 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:60 +//line base.qtpl:62 } -//line base.qtpl:60 +//line base.qtpl:62 func (p *BasePage) Body() string { -//line base.qtpl:60 +//line base.qtpl:62 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:60 +//line base.qtpl:62 p.WriteBody(qb422016) -//line base.qtpl:60 +//line base.qtpl:62 qs422016 := string(qb422016.B) -//line base.qtpl:60 +//line base.qtpl:62 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:60 +//line base.qtpl:62 return qs422016 -//line base.qtpl:60 +//line base.qtpl:62 } -//line base.qtpl:61 +//line base.qtpl:63 func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) { -//line base.qtpl:61 +//line base.qtpl:63 } -//line base.qtpl:61 +//line base.qtpl:63 func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) { -//line base.qtpl:61 +//line base.qtpl:63 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:61 +//line base.qtpl:63 p.StreamScript(qw422016) -//line base.qtpl:61 +//line base.qtpl:63 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:61 +//line base.qtpl:63 } -//line base.qtpl:61 +//line base.qtpl:63 func (p *BasePage) Script() string { -//line base.qtpl:61 +//line base.qtpl:63 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:61 +//line base.qtpl:63 p.WriteScript(qb422016) -//line base.qtpl:61 +//line base.qtpl:63 qs422016 := string(qb422016.B) -//line base.qtpl:61 +//line base.qtpl:63 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:61 +//line base.qtpl:63 return qs422016 -//line base.qtpl:61 +//line base.qtpl:63 } -- cgit v1.2.3