aboutsummaryrefslogtreecommitdiff
path: root/templates/helloworld.qtpl.go
blob: a12455fe6c09e8027a97fd8b4a1fe30179553928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// Code generated by qtc from "helloworld.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

//line helloworld.qtpl:1
package templates

//line helloworld.qtpl:1
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line helloworld.qtpl:1
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line helloworld.qtpl:2
type HelloPage struct {
	Body string
}

//line helloworld.qtpl:7
func (p *HelloPage) StreamTitle(qw422016 *qt422016.Writer) {
//line helloworld.qtpl:7
	qw422016.N().S(`Hello`)
//line helloworld.qtpl:7
}

//line helloworld.qtpl:7
func (p *HelloPage) WriteTitle(qq422016 qtio422016.Writer) {
//line helloworld.qtpl:7
	qw422016 := qt422016.AcquireWriter(qq422016)
//line helloworld.qtpl:7
	p.StreamTitle(qw422016)
//line helloworld.qtpl:7
	qt422016.ReleaseWriter(qw422016)
//line helloworld.qtpl:7
}

//line helloworld.qtpl:7
func (p *HelloPage) Title() string {
//line helloworld.qtpl:7
	qb422016 := qt422016.AcquireByteBuffer()
//line helloworld.qtpl:7
	p.WriteTitle(qb422016)
//line helloworld.qtpl:7
	qs422016 := string(qb422016.B)
//line helloworld.qtpl:7
	qt422016.ReleaseByteBuffer(qb422016)
//line helloworld.qtpl:7
	return qs422016
//line helloworld.qtpl:7
}

//line helloworld.qtpl:9
func (p *HelloPage) StreamContent(qw422016 *qt422016.Writer) {
//line helloworld.qtpl:9
	qw422016.N().S(`
HelloWorld

`)
//line helloworld.qtpl:12
	qw422016.N().S(p.Body)
//line helloworld.qtpl:12
	qw422016.N().S(`
`)
//line helloworld.qtpl:13
}

//line helloworld.qtpl:13
func (p *HelloPage) WriteContent(qq422016 qtio422016.Writer) {
//line helloworld.qtpl:13
	qw422016 := qt422016.AcquireWriter(qq422016)
//line helloworld.qtpl:13
	p.StreamContent(qw422016)
//line helloworld.qtpl:13
	qt422016.ReleaseWriter(qw422016)
//line helloworld.qtpl:13
}

//line helloworld.qtpl:13
func (p *HelloPage) Content() string {
//line helloworld.qtpl:13
	qb422016 := qt422016.AcquireByteBuffer()
//line helloworld.qtpl:13
	p.WriteContent(qb422016)
//line helloworld.qtpl:13
	qs422016 := string(qb422016.B)
//line helloworld.qtpl:13
	qt422016.ReleaseByteBuffer(qb422016)
//line helloworld.qtpl:13
	return qs422016
//line helloworld.qtpl:13
}

//line helloworld.qtpl:15
func (p *HelloPage) StreamScript(qw422016 *qt422016.Writer) {
//line helloworld.qtpl:15
	qw422016.N().S(`
`)
//line helloworld.qtpl:16
}

//line helloworld.qtpl:16
func (p *HelloPage) WriteScript(qq422016 qtio422016.Writer) {
//line helloworld.qtpl:16
	qw422016 := qt422016.AcquireWriter(qq422016)
//line helloworld.qtpl:16
	p.StreamScript(qw422016)
//line helloworld.qtpl:16
	qt422016.ReleaseWriter(qw422016)
//line helloworld.qtpl:16
}

//line helloworld.qtpl:16
func (p *HelloPage) Script() string {
//line helloworld.qtpl:16
	qb422016 := qt422016.AcquireByteBuffer()
//line helloworld.qtpl:16
	p.WriteScript(qb422016)
//line helloworld.qtpl:16
	qs422016 := string(qb422016.B)
//line helloworld.qtpl:16
	qt422016.ReleaseByteBuffer(qb422016)
//line helloworld.qtpl:16
	return qs422016
//line helloworld.qtpl:16
}