diff options
Diffstat (limited to 'templates/about.qtpl.go')
| -rw-r--r-- | templates/about.qtpl.go | 176 | 
1 files changed, 90 insertions, 86 deletions
diff --git a/templates/about.qtpl.go b/templates/about.qtpl.go index 2c07ceb..a640f7e 100644 --- a/templates/about.qtpl.go +++ b/templates/about.qtpl.go @@ -5,130 +5,100 @@  package templates  //line templates/about.qtpl:1 +import "context" + +//line templates/about.qtpl:3  import (  	qtio422016 "io"  	qt422016 "github.com/valyala/quicktemplate"  ) -//line templates/about.qtpl:1 +//line templates/about.qtpl:3  var (  	_ = qtio422016.Copy  	_ = qt422016.AcquireByteBuffer  ) -//line templates/about.qtpl:2 +//line templates/about.qtpl:4  type AboutPage struct { -	Body []byte +	LoggedIn bool +	Body     []byte  } -//line templates/about.qtpl:7 -func (p *AboutPage) StreamTitle(qw422016 *qt422016.Writer) { -//line templates/about.qtpl:7 +//line templates/about.qtpl:10 +func (p *AboutPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) { +//line templates/about.qtpl:10  	qw422016.N().S(`Hello`) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10  } -//line templates/about.qtpl:7 -func (p *AboutPage) WriteTitle(qq422016 qtio422016.Writer) { -//line templates/about.qtpl:7 +//line templates/about.qtpl:10 +func (p *AboutPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) { +//line templates/about.qtpl:10  	qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/about.qtpl:7 -	p.StreamTitle(qw422016) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10 +	p.StreamTitle(qw422016, ctx) +//line templates/about.qtpl:10  	qt422016.ReleaseWriter(qw422016) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10  } -//line templates/about.qtpl:7 -func (p *AboutPage) Title() string { -//line templates/about.qtpl:7 +//line templates/about.qtpl:10 +func (p *AboutPage) Title(ctx context.Context) string { +//line templates/about.qtpl:10  	qb422016 := qt422016.AcquireByteBuffer() -//line templates/about.qtpl:7 -	p.WriteTitle(qb422016) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10 +	p.WriteTitle(qb422016, ctx) +//line templates/about.qtpl:10  	qs422016 := string(qb422016.B) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10  	qt422016.ReleaseByteBuffer(qb422016) -//line templates/about.qtpl:7 +//line templates/about.qtpl:10  	return qs422016 -//line templates/about.qtpl:7 -} - -//line templates/about.qtpl:9 -func (p *AboutPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line templates/about.qtpl:9 -	StreamNavbar(qw422016, About) -//line templates/about.qtpl:9 +//line templates/about.qtpl:10  } -//line templates/about.qtpl:9 -func (p *AboutPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line templates/about.qtpl:9 -	qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/about.qtpl:9 -	p.StreamNavbar(qw422016) -//line templates/about.qtpl:9 -	qt422016.ReleaseWriter(qw422016) -//line templates/about.qtpl:9 -} - -//line templates/about.qtpl:9 -func (p *AboutPage) Navbar() string { -//line templates/about.qtpl:9 -	qb422016 := qt422016.AcquireByteBuffer() -//line templates/about.qtpl:9 -	p.WriteNavbar(qb422016) -//line templates/about.qtpl:9 -	qs422016 := string(qb422016.B) -//line templates/about.qtpl:9 -	qt422016.ReleaseByteBuffer(qb422016) -//line templates/about.qtpl:9 -	return qs422016 -//line templates/about.qtpl:9 -} - -//line templates/about.qtpl:11 -func (p *AboutPage) StreamContent(qw422016 *qt422016.Writer) { -//line templates/about.qtpl:11 -	qw422016.N().S(` -`)  //line templates/about.qtpl:12 -	qw422016.N().Z(p.Body) +func (p *AboutPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) { +//line templates/about.qtpl:12 +	StreamNavbar(qw422016, ctx, About)  //line templates/about.qtpl:12 -	qw422016.N().S(` -`) -//line templates/about.qtpl:13  } -//line templates/about.qtpl:13 -func (p *AboutPage) WriteContent(qq422016 qtio422016.Writer) { -//line templates/about.qtpl:13 +//line templates/about.qtpl:12 +func (p *AboutPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) { +//line templates/about.qtpl:12  	qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/about.qtpl:13 -	p.StreamContent(qw422016) -//line templates/about.qtpl:13 +//line templates/about.qtpl:12 +	p.StreamNavbar(qw422016, ctx) +//line templates/about.qtpl:12  	qt422016.ReleaseWriter(qw422016) -//line templates/about.qtpl:13 +//line templates/about.qtpl:12  } -//line templates/about.qtpl:13 -func (p *AboutPage) Content() string { -//line templates/about.qtpl:13 +//line templates/about.qtpl:12 +func (p *AboutPage) Navbar(ctx context.Context) string { +//line templates/about.qtpl:12  	qb422016 := qt422016.AcquireByteBuffer() -//line templates/about.qtpl:13 -	p.WriteContent(qb422016) -//line templates/about.qtpl:13 +//line templates/about.qtpl:12 +	p.WriteNavbar(qb422016, ctx) +//line templates/about.qtpl:12  	qs422016 := string(qb422016.B) -//line templates/about.qtpl:13 +//line templates/about.qtpl:12  	qt422016.ReleaseByteBuffer(qb422016) -//line templates/about.qtpl:13 +//line templates/about.qtpl:12  	return qs422016 -//line templates/about.qtpl:13 +//line templates/about.qtpl:12  } +//line templates/about.qtpl:14 +func (p *AboutPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) { +//line templates/about.qtpl:14 +	qw422016.N().S(` +`)  //line templates/about.qtpl:15 -func (p *AboutPage) StreamScript(qw422016 *qt422016.Writer) { +	qw422016.N().Z(p.Body)  //line templates/about.qtpl:15  	qw422016.N().S(`  `) @@ -136,22 +106,22 @@ func (p *AboutPage) StreamScript(qw422016 *qt422016.Writer) {  }  //line templates/about.qtpl:16 -func (p *AboutPage) WriteScript(qq422016 qtio422016.Writer) { +func (p *AboutPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) {  //line templates/about.qtpl:16  	qw422016 := qt422016.AcquireWriter(qq422016)  //line templates/about.qtpl:16 -	p.StreamScript(qw422016) +	p.StreamContent(qw422016, ctx)  //line templates/about.qtpl:16  	qt422016.ReleaseWriter(qw422016)  //line templates/about.qtpl:16  }  //line templates/about.qtpl:16 -func (p *AboutPage) Script() string { +func (p *AboutPage) Content(ctx context.Context) string {  //line templates/about.qtpl:16  	qb422016 := qt422016.AcquireByteBuffer()  //line templates/about.qtpl:16 -	p.WriteScript(qb422016) +	p.WriteContent(qb422016, ctx)  //line templates/about.qtpl:16  	qs422016 := string(qb422016.B)  //line templates/about.qtpl:16 @@ -160,3 +130,37 @@ func (p *AboutPage) Script() string {  	return qs422016  //line templates/about.qtpl:16  } + +//line templates/about.qtpl:18 +func (p *AboutPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) { +//line templates/about.qtpl:18 +	qw422016.N().S(` +`) +//line templates/about.qtpl:19 +} + +//line templates/about.qtpl:19 +func (p *AboutPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) { +//line templates/about.qtpl:19 +	qw422016 := qt422016.AcquireWriter(qq422016) +//line templates/about.qtpl:19 +	p.StreamScript(qw422016, ctx) +//line templates/about.qtpl:19 +	qt422016.ReleaseWriter(qw422016) +//line templates/about.qtpl:19 +} + +//line templates/about.qtpl:19 +func (p *AboutPage) Script(ctx context.Context) string { +//line templates/about.qtpl:19 +	qb422016 := qt422016.AcquireByteBuffer() +//line templates/about.qtpl:19 +	p.WriteScript(qb422016, ctx) +//line templates/about.qtpl:19 +	qs422016 := string(qb422016.B) +//line templates/about.qtpl:19 +	qt422016.ReleaseByteBuffer(qb422016) +//line templates/about.qtpl:19 +	return qs422016 +//line templates/about.qtpl:19 +}  | 
