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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
// Code generated by qtc from "about.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line templates/about.qtpl:1
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:3
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/about.qtpl:4
type AboutPage struct {
LoggedIn bool
Body []byte
}
//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:10
}
//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:10
p.StreamTitle(qw422016, ctx)
//line templates/about.qtpl:10
qt422016.ReleaseWriter(qw422016)
//line templates/about.qtpl:10
}
//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:10
p.WriteTitle(qb422016, ctx)
//line templates/about.qtpl:10
qs422016 := string(qb422016.B)
//line templates/about.qtpl:10
qt422016.ReleaseByteBuffer(qb422016)
//line templates/about.qtpl:10
return qs422016
//line templates/about.qtpl:10
}
//line templates/about.qtpl:12
func (p *AboutPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) {
//line templates/about.qtpl:12
StreamNavbar(qw422016, ctx, About)
//line templates/about.qtpl:12
}
//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:12
p.StreamNavbar(qw422016, ctx)
//line templates/about.qtpl:12
qt422016.ReleaseWriter(qw422016)
//line templates/about.qtpl:12
}
//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:12
p.WriteNavbar(qb422016, ctx)
//line templates/about.qtpl:12
qs422016 := string(qb422016.B)
//line templates/about.qtpl:12
qt422016.ReleaseByteBuffer(qb422016)
//line templates/about.qtpl:12
return qs422016
//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
qw422016.N().Z(p.Body)
//line templates/about.qtpl:15
qw422016.N().S(`
`)
//line templates/about.qtpl:16
}
//line templates/about.qtpl:16
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.StreamContent(qw422016, ctx)
//line templates/about.qtpl:16
qt422016.ReleaseWriter(qw422016)
//line templates/about.qtpl:16
}
//line templates/about.qtpl:16
func (p *AboutPage) Content(ctx context.Context) string {
//line templates/about.qtpl:16
qb422016 := qt422016.AcquireByteBuffer()
//line templates/about.qtpl:16
p.WriteContent(qb422016, ctx)
//line templates/about.qtpl:16
qs422016 := string(qb422016.B)
//line templates/about.qtpl:16
qt422016.ReleaseByteBuffer(qb422016)
//line templates/about.qtpl:16
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
}
|