cerrado @ 2dd4cf35aab8324608a83d337459fd8354521b92

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