// Code generated by qtc from "page.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

//line web/template/page.qtpl:1
package template

//line web/template/page.qtpl:1
import (
	"source.toby3d.me/toby3d/home/internal/domain"
)

//line web/template/page.qtpl:5
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line web/template/page.qtpl:5
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line web/template/page.qtpl:6
type Page struct {
	BaseOf
	page *domain.Entry
}

func NewPage(base BaseOf, page *domain.Entry) Page {
	return Page{
		BaseOf: base,
		page:   page,
	}
}

//line web/template/page.qtpl:20
func (p Page) StreamTitle(qw422016 *qt422016.Writer) {
//line web/template/page.qtpl:21
	if p.page.Title != "" {
//line web/template/page.qtpl:22
		qw422016.E().S(p.page.Title)
//line web/template/page.qtpl:23
	} else {
//line web/template/page.qtpl:24
		p.BaseOf.StreamTitle(qw422016)
//line web/template/page.qtpl:25
	}
//line web/template/page.qtpl:26
}

//line web/template/page.qtpl:26
func (p Page) WriteTitle(qq422016 qtio422016.Writer) {
//line web/template/page.qtpl:26
	qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/page.qtpl:26
	p.StreamTitle(qw422016)
//line web/template/page.qtpl:26
	qt422016.ReleaseWriter(qw422016)
//line web/template/page.qtpl:26
}

//line web/template/page.qtpl:26
func (p Page) Title() string {
//line web/template/page.qtpl:26
	qb422016 := qt422016.AcquireByteBuffer()
//line web/template/page.qtpl:26
	p.WriteTitle(qb422016)
//line web/template/page.qtpl:26
	qs422016 := string(qb422016.B)
//line web/template/page.qtpl:26
	qt422016.ReleaseByteBuffer(qb422016)
//line web/template/page.qtpl:26
	return qs422016
//line web/template/page.qtpl:26
}

//line web/template/page.qtpl:28
func (p Page) StreamLang(qw422016 *qt422016.Writer) {
//line web/template/page.qtpl:29
	if p.page.Language != domain.LanguageUnd {
//line web/template/page.qtpl:30
		qw422016.E().S(p.page.Language.Lang())
//line web/template/page.qtpl:31
	} else {
//line web/template/page.qtpl:32
		p.BaseOf.StreamLang(qw422016)
//line web/template/page.qtpl:33
	}
//line web/template/page.qtpl:34
}

//line web/template/page.qtpl:34
func (p Page) WriteLang(qq422016 qtio422016.Writer) {
//line web/template/page.qtpl:34
	qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/page.qtpl:34
	p.StreamLang(qw422016)
//line web/template/page.qtpl:34
	qt422016.ReleaseWriter(qw422016)
//line web/template/page.qtpl:34
}

//line web/template/page.qtpl:34
func (p Page) Lang() string {
//line web/template/page.qtpl:34
	qb422016 := qt422016.AcquireByteBuffer()
//line web/template/page.qtpl:34
	p.WriteLang(qb422016)
//line web/template/page.qtpl:34
	qs422016 := string(qb422016.B)
//line web/template/page.qtpl:34
	qt422016.ReleaseByteBuffer(qb422016)
//line web/template/page.qtpl:34
	return qs422016
//line web/template/page.qtpl:34
}

//line web/template/page.qtpl:36
func (p Page) StreamDir(qw422016 *qt422016.Writer) {
//line web/template/page.qtpl:37
	if p.page.Language != domain.LanguageUnd {
//line web/template/page.qtpl:38
		qw422016.E().S(p.page.Language.Dir().String())
//line web/template/page.qtpl:39
	} else {
//line web/template/page.qtpl:40
		p.BaseOf.StreamLang(qw422016)
//line web/template/page.qtpl:41
	}
//line web/template/page.qtpl:42
}

//line web/template/page.qtpl:42
func (p Page) WriteDir(qq422016 qtio422016.Writer) {
//line web/template/page.qtpl:42
	qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/page.qtpl:42
	p.StreamDir(qw422016)
//line web/template/page.qtpl:42
	qt422016.ReleaseWriter(qw422016)
//line web/template/page.qtpl:42
}

//line web/template/page.qtpl:42
func (p Page) Dir() string {
//line web/template/page.qtpl:42
	qb422016 := qt422016.AcquireByteBuffer()
//line web/template/page.qtpl:42
	p.WriteDir(qb422016)
//line web/template/page.qtpl:42
	qs422016 := string(qb422016.B)
//line web/template/page.qtpl:42
	qt422016.ReleaseByteBuffer(qb422016)
//line web/template/page.qtpl:42
	return qs422016
//line web/template/page.qtpl:42
}

//line web/template/page.qtpl:44
func (p Page) StreamBody(qw422016 *qt422016.Writer) {
//line web/template/page.qtpl:44
	qw422016.N().S(`<p>`)
//line web/template/page.qtpl:45
	qw422016.N().Z(p.page.Content)
//line web/template/page.qtpl:45
	qw422016.N().S(`</p>`)
//line web/template/page.qtpl:46
}

//line web/template/page.qtpl:46
func (p Page) WriteBody(qq422016 qtio422016.Writer) {
//line web/template/page.qtpl:46
	qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/page.qtpl:46
	p.StreamBody(qw422016)
//line web/template/page.qtpl:46
	qt422016.ReleaseWriter(qw422016)
//line web/template/page.qtpl:46
}

//line web/template/page.qtpl:46
func (p Page) Body() string {
//line web/template/page.qtpl:46
	qb422016 := qt422016.AcquireByteBuffer()
//line web/template/page.qtpl:46
	p.WriteBody(qb422016)
//line web/template/page.qtpl:46
	qs422016 := string(qb422016.B)
//line web/template/page.qtpl:46
	qt422016.ReleaseByteBuffer(qb422016)
//line web/template/page.qtpl:46
	return qs422016
//line web/template/page.qtpl:46
}
