blob: 0d3d2b0c41d592cf030a0806131d1057e8726786 (
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
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
167
168
169
170
171
172
173
|
// 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 (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line templates/login.qtpl:1
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/login.qtpl:2
type LoginPage struct {
}
//line templates/login.qtpl:6
func (p *LoginPage) StreamTitle(qw422016 *qt422016.Writer) {
//line templates/login.qtpl:6
qw422016.N().S(`Hello`)
//line templates/login.qtpl:6
}
//line templates/login.qtpl:6
func (p *LoginPage) WriteTitle(qq422016 qtio422016.Writer) {
//line templates/login.qtpl:6
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/login.qtpl:6
p.StreamTitle(qw422016)
//line templates/login.qtpl:6
qt422016.ReleaseWriter(qw422016)
//line templates/login.qtpl:6
}
//line templates/login.qtpl:6
func (p *LoginPage) Title() string {
//line templates/login.qtpl:6
qb422016 := qt422016.AcquireByteBuffer()
//line templates/login.qtpl:6
p.WriteTitle(qb422016)
//line templates/login.qtpl:6
qs422016 := string(qb422016.B)
//line templates/login.qtpl:6
qt422016.ReleaseByteBuffer(qb422016)
//line templates/login.qtpl:6
return qs422016
//line templates/login.qtpl:6
}
//line templates/login.qtpl:8
func (p *LoginPage) StreamNavbar(qw422016 *qt422016.Writer) {
//line templates/login.qtpl:8
StreamNavbar(qw422016, Login)
//line templates/login.qtpl:8
}
//line templates/login.qtpl:8
func (p *LoginPage) WriteNavbar(qq422016 qtio422016.Writer) {
//line templates/login.qtpl:8
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/login.qtpl:8
p.StreamNavbar(qw422016)
//line templates/login.qtpl:8
qt422016.ReleaseWriter(qw422016)
//line templates/login.qtpl:8
}
//line templates/login.qtpl:8
func (p *LoginPage) Navbar() string {
//line templates/login.qtpl:8
qb422016 := qt422016.AcquireByteBuffer()
//line templates/login.qtpl:8
p.WriteNavbar(qb422016)
//line templates/login.qtpl:8
qs422016 := string(qb422016.B)
//line templates/login.qtpl:8
qt422016.ReleaseByteBuffer(qb422016)
//line templates/login.qtpl:8
return qs422016
//line templates/login.qtpl:8
}
//line templates/login.qtpl:10
func (p *LoginPage) StreamContent(qw422016 *qt422016.Writer) {
//line templates/login.qtpl:10
qw422016.N().S(`
<div class="row">
<div class="col-md-6 offset-md-3">
<form>
<div class="form-group m-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" aria-describedby="emailHelp">
</div>
<div class="form-group m-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password">
</div>
<div class="form-group m-3">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</form>
</div>
</div>
`)
//line templates/login.qtpl:28
}
//line templates/login.qtpl:28
func (p *LoginPage) WriteContent(qq422016 qtio422016.Writer) {
//line templates/login.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/login.qtpl:28
p.StreamContent(qw422016)
//line templates/login.qtpl:28
qt422016.ReleaseWriter(qw422016)
//line templates/login.qtpl:28
}
//line templates/login.qtpl:28
func (p *LoginPage) Content() string {
//line templates/login.qtpl:28
qb422016 := qt422016.AcquireByteBuffer()
//line templates/login.qtpl:28
p.WriteContent(qb422016)
//line templates/login.qtpl:28
qs422016 := string(qb422016.B)
//line templates/login.qtpl:28
qt422016.ReleaseByteBuffer(qb422016)
//line templates/login.qtpl:28
return qs422016
//line templates/login.qtpl:28
}
//line templates/login.qtpl:30
func (p *LoginPage) StreamScript(qw422016 *qt422016.Writer) {
//line templates/login.qtpl:30
qw422016.N().S(`
`)
//line templates/login.qtpl:31
}
//line templates/login.qtpl:31
func (p *LoginPage) WriteScript(qq422016 qtio422016.Writer) {
//line templates/login.qtpl:31
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/login.qtpl:31
p.StreamScript(qw422016)
//line templates/login.qtpl:31
qt422016.ReleaseWriter(qw422016)
//line templates/login.qtpl:31
}
//line templates/login.qtpl:31
func (p *LoginPage) Script() string {
//line templates/login.qtpl:31
qb422016 := qt422016.AcquireByteBuffer()
//line templates/login.qtpl:31
p.WriteScript(qb422016)
//line templates/login.qtpl:31
qs422016 := string(qb422016.B)
//line templates/login.qtpl:31
qt422016.ReleaseByteBuffer(qb422016)
//line templates/login.qtpl:31
return qs422016
//line templates/login.qtpl:31
}
|