// Code generated by qtc from "login.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/login.qtpl:1 package templates //line templates/login.qtpl:1 import "context" //line templates/login.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/login.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/login.qtpl:4 type LoginPage struct { Referer string ErrorMessage string } //line templates/login.qtpl:10 func (p *LoginPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/login.qtpl:10 qw422016.N().S(`Hello`) //line templates/login.qtpl:10 } //line templates/login.qtpl:10 func (p *LoginPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/login.qtpl:10 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/login.qtpl:10 p.StreamTitle(qw422016, ctx) //line templates/login.qtpl:10 qt422016.ReleaseWriter(qw422016) //line templates/login.qtpl:10 } //line templates/login.qtpl:10 func (p *LoginPage) Title(ctx context.Context) string { //line templates/login.qtpl:10 qb422016 := qt422016.AcquireByteBuffer() //line templates/login.qtpl:10 p.WriteTitle(qb422016, ctx) //line templates/login.qtpl:10 qs422016 := string(qb422016.B) //line templates/login.qtpl:10 qt422016.ReleaseByteBuffer(qb422016) //line templates/login.qtpl:10 return qs422016 //line templates/login.qtpl:10 } //line templates/login.qtpl:12 func (p *LoginPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/login.qtpl:12 StreamNavbar(qw422016, ctx, Login) //line templates/login.qtpl:12 } //line templates/login.qtpl:12 func (p *LoginPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/login.qtpl:12 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/login.qtpl:12 p.StreamNavbar(qw422016, ctx) //line templates/login.qtpl:12 qt422016.ReleaseWriter(qw422016) //line templates/login.qtpl:12 } //line templates/login.qtpl:12 func (p *LoginPage) Navbar(ctx context.Context) string { //line templates/login.qtpl:12 qb422016 := qt422016.AcquireByteBuffer() //line templates/login.qtpl:12 p.WriteNavbar(qb422016, ctx) //line templates/login.qtpl:12 qs422016 := string(qb422016.B) //line templates/login.qtpl:12 qt422016.ReleaseByteBuffer(qb422016) //line templates/login.qtpl:12 return qs422016 //line templates/login.qtpl:12 } //line templates/login.qtpl:14 func (p *LoginPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/login.qtpl:14 qw422016.N().S(`
`) //line templates/login.qtpl:17 if p.Referer == "" { //line templates/login.qtpl:17 qw422016.N().S(`
`) //line templates/login.qtpl:19 } else { //line templates/login.qtpl:19 qw422016.N().S(` `) //line templates/login.qtpl:21 } //line templates/login.qtpl:21 qw422016.N().S(`
`) //line templates/login.qtpl:35 if p.ErrorMessage != "" { //line templates/login.qtpl:35 qw422016.N().S(`
`) //line templates/login.qtpl:38 qw422016.E().S(p.ErrorMessage) //line templates/login.qtpl:38 qw422016.N().S(`
`) //line templates/login.qtpl:41 } //line templates/login.qtpl:41 qw422016.N().S(`
`) //line templates/login.qtpl:43 } //line templates/login.qtpl:43 func (p *LoginPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/login.qtpl:43 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/login.qtpl:43 p.StreamContent(qw422016, ctx) //line templates/login.qtpl:43 qt422016.ReleaseWriter(qw422016) //line templates/login.qtpl:43 } //line templates/login.qtpl:43 func (p *LoginPage) Content(ctx context.Context) string { //line templates/login.qtpl:43 qb422016 := qt422016.AcquireByteBuffer() //line templates/login.qtpl:43 p.WriteContent(qb422016, ctx) //line templates/login.qtpl:43 qs422016 := string(qb422016.B) //line templates/login.qtpl:43 qt422016.ReleaseByteBuffer(qb422016) //line templates/login.qtpl:43 return qs422016 //line templates/login.qtpl:43 } //line templates/login.qtpl:45 func (p *LoginPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/login.qtpl:45 qw422016.N().S(` `) //line templates/login.qtpl:46 } //line templates/login.qtpl:46 func (p *LoginPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/login.qtpl:46 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/login.qtpl:46 p.StreamScript(qw422016, ctx) //line templates/login.qtpl:46 qt422016.ReleaseWriter(qw422016) //line templates/login.qtpl:46 } //line templates/login.qtpl:46 func (p *LoginPage) Script(ctx context.Context) string { //line templates/login.qtpl:46 qb422016 := qt422016.AcquireByteBuffer() //line templates/login.qtpl:46 p.WriteScript(qb422016, ctx) //line templates/login.qtpl:46 qs422016 := string(qb422016.B) //line templates/login.qtpl:46 qt422016.ReleaseByteBuffer(qb422016) //line templates/login.qtpl:46 return qs422016 //line templates/login.qtpl:46 }