83 lines
1.9 KiB
Go
83 lines
1.9 KiB
Go
// Code generated by qtc from "error.qtpl". DO NOT EDIT.
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
// Error page template. Implements BasePage methods.
|
|
//
|
|
|
|
//line templates/error.qtpl:3
|
|
package templates
|
|
|
|
//line templates/error.qtpl:3
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line templates/error.qtpl:3
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line templates/error.qtpl:4
|
|
type ErrorPage struct {
|
|
// inherit from base page, so its' title is used in error page.
|
|
BasePage
|
|
|
|
// error path
|
|
Path []byte
|
|
}
|
|
|
|
//line templates/error.qtpl:14
|
|
func (p *ErrorPage) StreamBody(qw422016 *qt422016.Writer) {
|
|
//line templates/error.qtpl:14
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/error.qtpl:15
|
|
p.BasePage.StreamHeader(qw422016)
|
|
//line templates/error.qtpl:15
|
|
qw422016.N().S(`
|
|
<h1>Error page</h1>
|
|
</div>
|
|
Unsupported path <b>`)
|
|
//line templates/error.qtpl:18
|
|
qw422016.E().Z(p.Path)
|
|
//line templates/error.qtpl:18
|
|
qw422016.N().S(`</b>.
|
|
</div>
|
|
`)
|
|
//line templates/error.qtpl:20
|
|
p.BasePage.StreamFooter(qw422016, p.Status)
|
|
//line templates/error.qtpl:20
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/error.qtpl:21
|
|
}
|
|
|
|
//line templates/error.qtpl:21
|
|
func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer) {
|
|
//line templates/error.qtpl:21
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/error.qtpl:21
|
|
p.StreamBody(qw422016)
|
|
//line templates/error.qtpl:21
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/error.qtpl:21
|
|
}
|
|
|
|
//line templates/error.qtpl:21
|
|
func (p *ErrorPage) Body() string {
|
|
//line templates/error.qtpl:21
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/error.qtpl:21
|
|
p.WriteBody(qb422016)
|
|
//line templates/error.qtpl:21
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/error.qtpl:21
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/error.qtpl:21
|
|
return qs422016
|
|
//line templates/error.qtpl:21
|
|
}
|