cerrado @ ce911df583e384d86018e42f9548cdf33d1c1549

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