1// Code generated by qtc from "base.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4// This is a base page template. All the other template pages implement this interface.
5//
6
7//line base.qtpl:3
8package templates
9
10//line base.qtpl:3
11import "strconv"
12
13//line base.qtpl:5
14import (
15 qtio422016 "io"
16
17 qt422016 "github.com/valyala/quicktemplate"
18)
19
20//line base.qtpl:5
21var (
22 _ = qtio422016.Copy
23 _ = qt422016.AcquireByteBuffer
24)
25
26//line base.qtpl:6
27type Page interface {
28//line base.qtpl:6
29 Title() string
30//line base.qtpl:6
31 StreamTitle(qw422016 *qt422016.Writer)
32//line base.qtpl:6
33 WriteTitle(qq422016 qtio422016.Writer)
34//line base.qtpl:6
35 Content() string
36//line base.qtpl:6
37 StreamContent(qw422016 *qt422016.Writer)
38//line base.qtpl:6
39 WriteContent(qq422016 qtio422016.Writer)
40//line base.qtpl:6
41 Script() string
42//line base.qtpl:6
43 StreamScript(qw422016 *qt422016.Writer)
44//line base.qtpl:6
45 WriteScript(qq422016 qtio422016.Writer)
46//line base.qtpl:6
47}
48
49//line base.qtpl:14
50func FromUInttoString(u *uint) string {
51 if u != nil {
52 return strconv.FormatUint(uint64(*u), 10)
53 }
54 return ""
55}
56
57// Page prints a page implementing Page interface.
58
59//line base.qtpl:24
60func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
61//line base.qtpl:24
62 qw422016.N().S(`
63<html lang="en">
64 <head>
65 <meta charset="utf-8">
66 <link rel="icon" href="data:,">
67 <title>cerrado | `)
68//line base.qtpl:29
69 p.StreamTitle(qw422016)
70//line base.qtpl:29
71 qw422016.N().S(`</title>
72 <link rel="stylesheet" href="/static/main.css">
73 <meta name="viewport" content="width=device-width, initial-scale=1" />
74 </head>
75 <body>
76 <nav class="navbar navbar-expand bg-body-tertiary">
77 <div class="container-fluid">
78 <div class="collapse navbar-collapse">
79 <div class="navbar-nav">
80 <a class="nav-link" href="/git">git</a>
81 <a class="nav-link" href="/list">list</a>
82 </div>
83 </div>
84 </div>
85 </nav>
86 <div class="container">
87 `)
88//line base.qtpl:45
89 p.StreamContent(qw422016)
90//line base.qtpl:45
91 qw422016.N().S(`
92 </div>
93 </body>
94 `)
95//line base.qtpl:48
96 p.StreamScript(qw422016)
97//line base.qtpl:48
98 qw422016.N().S(`
99</html>
100`)
101//line base.qtpl:50
102}
103
104//line base.qtpl:50
105func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
106//line base.qtpl:50
107 qw422016 := qt422016.AcquireWriter(qq422016)
108//line base.qtpl:50
109 StreamPageTemplate(qw422016, p)
110//line base.qtpl:50
111 qt422016.ReleaseWriter(qw422016)
112//line base.qtpl:50
113}
114
115//line base.qtpl:50
116func PageTemplate(p Page) string {
117//line base.qtpl:50
118 qb422016 := qt422016.AcquireByteBuffer()
119//line base.qtpl:50
120 WritePageTemplate(qb422016, p)
121//line base.qtpl:50
122 qs422016 := string(qb422016.B)
123//line base.qtpl:50
124 qt422016.ReleaseByteBuffer(qb422016)
125//line base.qtpl:50
126 return qs422016
127//line base.qtpl:50
128}
129
130//line base.qtpl:52
131type BasePage struct{}
132
133//line base.qtpl:53
134func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) {
135//line base.qtpl:53
136 qw422016.N().S(`Empty`)
137//line base.qtpl:53
138}
139
140//line base.qtpl:53
141func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) {
142//line base.qtpl:53
143 qw422016 := qt422016.AcquireWriter(qq422016)
144//line base.qtpl:53
145 p.StreamTitle(qw422016)
146//line base.qtpl:53
147 qt422016.ReleaseWriter(qw422016)
148//line base.qtpl:53
149}
150
151//line base.qtpl:53
152func (p *BasePage) Title() string {
153//line base.qtpl:53
154 qb422016 := qt422016.AcquireByteBuffer()
155//line base.qtpl:53
156 p.WriteTitle(qb422016)
157//line base.qtpl:53
158 qs422016 := string(qb422016.B)
159//line base.qtpl:53
160 qt422016.ReleaseByteBuffer(qb422016)
161//line base.qtpl:53
162 return qs422016
163//line base.qtpl:53
164}
165
166//line base.qtpl:54
167func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) {
168//line base.qtpl:54
169 qw422016.N().S(`HelloWorld`)
170//line base.qtpl:54
171}
172
173//line base.qtpl:54
174func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) {
175//line base.qtpl:54
176 qw422016 := qt422016.AcquireWriter(qq422016)
177//line base.qtpl:54
178 p.StreamBody(qw422016)
179//line base.qtpl:54
180 qt422016.ReleaseWriter(qw422016)
181//line base.qtpl:54
182}
183
184//line base.qtpl:54
185func (p *BasePage) Body() string {
186//line base.qtpl:54
187 qb422016 := qt422016.AcquireByteBuffer()
188//line base.qtpl:54
189 p.WriteBody(qb422016)
190//line base.qtpl:54
191 qs422016 := string(qb422016.B)
192//line base.qtpl:54
193 qt422016.ReleaseByteBuffer(qb422016)
194//line base.qtpl:54
195 return qs422016
196//line base.qtpl:54
197}
198
199//line base.qtpl:55
200func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) {
201//line base.qtpl:55
202}
203
204//line base.qtpl:55
205func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) {
206//line base.qtpl:55
207 qw422016 := qt422016.AcquireWriter(qq422016)
208//line base.qtpl:55
209 p.StreamScript(qw422016)
210//line base.qtpl:55
211 qt422016.ReleaseWriter(qw422016)
212//line base.qtpl:55
213}
214
215//line base.qtpl:55
216func (p *BasePage) Script() string {
217//line base.qtpl:55
218 qb422016 := qt422016.AcquireByteBuffer()
219//line base.qtpl:55
220 p.WriteScript(qb422016)
221//line base.qtpl:55
222 qs422016 := string(qb422016.B)
223//line base.qtpl:55
224 qt422016.ReleaseByteBuffer(qb422016)
225//line base.qtpl:55
226 return qs422016
227//line base.qtpl:55
228}