cerrado @ 242ba7f412d4e54f21385afff3f2b884f57f6ced

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