cerrado @ e991b497e8433ee207e597b17f0b7daa3a0e0f26

  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="container navbar navbar-expand-sm">
 77          <div class="navbar-nav">
 78            <a class="nav-link" href="/git">git</a>
 79            <a class="nav-link" href="/list">list</a>
 80            <a class="nav-link" href="/about">about</a>
 81            <a class="nav-link" href="/config">config</a>
 82          </div>
 83        </nav>
 84        <div class="container">
 85            `)
 86//line base.qtpl:43
 87	p.StreamContent(qw422016)
 88//line base.qtpl:43
 89	qw422016.N().S(`
 90        </div>
 91    </body>
 92    `)
 93//line base.qtpl:46
 94	p.StreamScript(qw422016)
 95//line base.qtpl:46
 96	qw422016.N().S(`
 97</html>
 98`)
 99//line base.qtpl:48
100}
101
102//line base.qtpl:48
103func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
104//line base.qtpl:48
105	qw422016 := qt422016.AcquireWriter(qq422016)
106//line base.qtpl:48
107	StreamPageTemplate(qw422016, p)
108//line base.qtpl:48
109	qt422016.ReleaseWriter(qw422016)
110//line base.qtpl:48
111}
112
113//line base.qtpl:48
114func PageTemplate(p Page) string {
115//line base.qtpl:48
116	qb422016 := qt422016.AcquireByteBuffer()
117//line base.qtpl:48
118	WritePageTemplate(qb422016, p)
119//line base.qtpl:48
120	qs422016 := string(qb422016.B)
121//line base.qtpl:48
122	qt422016.ReleaseByteBuffer(qb422016)
123//line base.qtpl:48
124	return qs422016
125//line base.qtpl:48
126}
127
128//line base.qtpl:50
129type BasePage struct{}
130
131//line base.qtpl:51
132func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) {
133//line base.qtpl:51
134	qw422016.N().S(`Empty`)
135//line base.qtpl:51
136}
137
138//line base.qtpl:51
139func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) {
140//line base.qtpl:51
141	qw422016 := qt422016.AcquireWriter(qq422016)
142//line base.qtpl:51
143	p.StreamTitle(qw422016)
144//line base.qtpl:51
145	qt422016.ReleaseWriter(qw422016)
146//line base.qtpl:51
147}
148
149//line base.qtpl:51
150func (p *BasePage) Title() string {
151//line base.qtpl:51
152	qb422016 := qt422016.AcquireByteBuffer()
153//line base.qtpl:51
154	p.WriteTitle(qb422016)
155//line base.qtpl:51
156	qs422016 := string(qb422016.B)
157//line base.qtpl:51
158	qt422016.ReleaseByteBuffer(qb422016)
159//line base.qtpl:51
160	return qs422016
161//line base.qtpl:51
162}
163
164//line base.qtpl:52
165func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) {
166//line base.qtpl:52
167	qw422016.N().S(`HelloWorld`)
168//line base.qtpl:52
169}
170
171//line base.qtpl:52
172func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) {
173//line base.qtpl:52
174	qw422016 := qt422016.AcquireWriter(qq422016)
175//line base.qtpl:52
176	p.StreamBody(qw422016)
177//line base.qtpl:52
178	qt422016.ReleaseWriter(qw422016)
179//line base.qtpl:52
180}
181
182//line base.qtpl:52
183func (p *BasePage) Body() string {
184//line base.qtpl:52
185	qb422016 := qt422016.AcquireByteBuffer()
186//line base.qtpl:52
187	p.WriteBody(qb422016)
188//line base.qtpl:52
189	qs422016 := string(qb422016.B)
190//line base.qtpl:52
191	qt422016.ReleaseByteBuffer(qb422016)
192//line base.qtpl:52
193	return qs422016
194//line base.qtpl:52
195}
196
197//line base.qtpl:53
198func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) {
199//line base.qtpl:53
200}
201
202//line base.qtpl:53
203func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) {
204//line base.qtpl:53
205	qw422016 := qt422016.AcquireWriter(qq422016)
206//line base.qtpl:53
207	p.StreamScript(qw422016)
208//line base.qtpl:53
209	qt422016.ReleaseWriter(qw422016)
210//line base.qtpl:53
211}
212
213//line base.qtpl:53
214func (p *BasePage) Script() string {
215//line base.qtpl:53
216	qb422016 := qt422016.AcquireByteBuffer()
217//line base.qtpl:53
218	p.WriteScript(qb422016)
219//line base.qtpl:53
220	qs422016 := string(qb422016.B)
221//line base.qtpl:53
222	qt422016.ReleaseByteBuffer(qb422016)
223//line base.qtpl:53
224	return qs422016
225//line base.qtpl:53
226}