cerrado @ f5c307668c7fa3c367defc6e924d7c1e00303c16

  1// Code generated by qtc from "gititem.qtpl". DO NOT EDIT.
  2// See https://github.com/valyala/quicktemplate for details.
  3
  4//line templates/gititem.qtpl:1
  5package templates
  6
  7//line templates/gititem.qtpl:1
  8import "context"
  9
 10//line templates/gititem.qtpl:3
 11import (
 12	qtio422016 "io"
 13
 14	qt422016 "github.com/valyala/quicktemplate"
 15)
 16
 17//line templates/gititem.qtpl:3
 18var (
 19	_ = qtio422016.Copy
 20	_ = qt422016.AcquireByteBuffer
 21)
 22
 23//line templates/gititem.qtpl:4
 24type GitItemBase interface {
 25//line templates/gititem.qtpl:4
 26	Nav(name, ref string) string
 27//line templates/gititem.qtpl:4
 28	StreamNav(qw422016 *qt422016.Writer, name, ref string)
 29//line templates/gititem.qtpl:4
 30	WriteNav(qq422016 qtio422016.Writer, name, ref string)
 31//line templates/gititem.qtpl:4
 32	GitContent(name, ref string) string
 33//line templates/gititem.qtpl:4
 34	StreamGitContent(qw422016 *qt422016.Writer, name, ref string)
 35//line templates/gititem.qtpl:4
 36	WriteGitContent(qq422016 qtio422016.Writer, name, ref string)
 37//line templates/gititem.qtpl:4
 38}
 39
 40//line templates/gititem.qtpl:11
 41type GitItemPage struct {
 42	Name string
 43	Ref  string
 44	GitItemBase
 45}
 46
 47//line templates/gititem.qtpl:18
 48func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) {
 49//line templates/gititem.qtpl:18
 50	qw422016.N().S(`Git | `)
 51//line templates/gititem.qtpl:18
 52	qw422016.E().S(p.Name)
 53//line templates/gititem.qtpl:18
 54}
 55
 56//line templates/gititem.qtpl:18
 57func (p *GitItemPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) {
 58//line templates/gititem.qtpl:18
 59	qw422016 := qt422016.AcquireWriter(qq422016)
 60//line templates/gititem.qtpl:18
 61	p.StreamTitle(qw422016, ctx)
 62//line templates/gititem.qtpl:18
 63	qt422016.ReleaseWriter(qw422016)
 64//line templates/gititem.qtpl:18
 65}
 66
 67//line templates/gititem.qtpl:18
 68func (p *GitItemPage) Title(ctx context.Context) string {
 69//line templates/gititem.qtpl:18
 70	qb422016 := qt422016.AcquireByteBuffer()
 71//line templates/gititem.qtpl:18
 72	p.WriteTitle(qb422016, ctx)
 73//line templates/gititem.qtpl:18
 74	qs422016 := string(qb422016.B)
 75//line templates/gititem.qtpl:18
 76	qt422016.ReleaseByteBuffer(qb422016)
 77//line templates/gititem.qtpl:18
 78	return qs422016
 79//line templates/gititem.qtpl:18
 80}
 81
 82//line templates/gititem.qtpl:20
 83func (p *GitItemPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) {
 84//line templates/gititem.qtpl:20
 85	StreamNavbar(qw422016, ctx, Git)
 86//line templates/gititem.qtpl:20
 87}
 88
 89//line templates/gititem.qtpl:20
 90func (p *GitItemPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) {
 91//line templates/gititem.qtpl:20
 92	qw422016 := qt422016.AcquireWriter(qq422016)
 93//line templates/gititem.qtpl:20
 94	p.StreamNavbar(qw422016, ctx)
 95//line templates/gititem.qtpl:20
 96	qt422016.ReleaseWriter(qw422016)
 97//line templates/gititem.qtpl:20
 98}
 99
100//line templates/gititem.qtpl:20
101func (p *GitItemPage) Navbar(ctx context.Context) string {
102//line templates/gititem.qtpl:20
103	qb422016 := qt422016.AcquireByteBuffer()
104//line templates/gititem.qtpl:20
105	p.WriteNavbar(qb422016, ctx)
106//line templates/gititem.qtpl:20
107	qs422016 := string(qb422016.B)
108//line templates/gititem.qtpl:20
109	qt422016.ReleaseByteBuffer(qb422016)
110//line templates/gititem.qtpl:20
111	return qs422016
112//line templates/gititem.qtpl:20
113}
114
115//line templates/gititem.qtpl:22
116func (p *GitItemPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) {
117//line templates/gititem.qtpl:22
118	qw422016.N().S(`
119`)
120//line templates/gititem.qtpl:23
121	p.StreamNav(qw422016, p.Name, p.Ref)
122//line templates/gititem.qtpl:23
123	qw422016.N().S(`
124<div class="container">
125`)
126//line templates/gititem.qtpl:25
127	p.StreamGitContent(qw422016, p.Name, p.Ref)
128//line templates/gititem.qtpl:25
129	qw422016.N().S(`
130</div>
131`)
132//line templates/gititem.qtpl:27
133}
134
135//line templates/gititem.qtpl:27
136func (p *GitItemPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) {
137//line templates/gititem.qtpl:27
138	qw422016 := qt422016.AcquireWriter(qq422016)
139//line templates/gititem.qtpl:27
140	p.StreamContent(qw422016, ctx)
141//line templates/gititem.qtpl:27
142	qt422016.ReleaseWriter(qw422016)
143//line templates/gititem.qtpl:27
144}
145
146//line templates/gititem.qtpl:27
147func (p *GitItemPage) Content(ctx context.Context) string {
148//line templates/gititem.qtpl:27
149	qb422016 := qt422016.AcquireByteBuffer()
150//line templates/gititem.qtpl:27
151	p.WriteContent(qb422016, ctx)
152//line templates/gititem.qtpl:27
153	qs422016 := string(qb422016.B)
154//line templates/gititem.qtpl:27
155	qt422016.ReleaseByteBuffer(qb422016)
156//line templates/gititem.qtpl:27
157	return qs422016
158//line templates/gititem.qtpl:27
159}
160
161//line templates/gititem.qtpl:29
162func (p *GitItemPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) {
163//line templates/gititem.qtpl:29
164	qw422016.N().S(`
165`)
166//line templates/gititem.qtpl:30
167}
168
169//line templates/gititem.qtpl:30
170func (p *GitItemPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) {
171//line templates/gititem.qtpl:30
172	qw422016 := qt422016.AcquireWriter(qq422016)
173//line templates/gititem.qtpl:30
174	p.StreamScript(qw422016, ctx)
175//line templates/gititem.qtpl:30
176	qt422016.ReleaseWriter(qw422016)
177//line templates/gititem.qtpl:30
178}
179
180//line templates/gititem.qtpl:30
181func (p *GitItemPage) Script(ctx context.Context) string {
182//line templates/gititem.qtpl:30
183	qb422016 := qt422016.AcquireByteBuffer()
184//line templates/gititem.qtpl:30
185	p.WriteScript(qb422016, ctx)
186//line templates/gititem.qtpl:30
187	qs422016 := string(qb422016.B)
188//line templates/gititem.qtpl:30
189	qt422016.ReleaseByteBuffer(qb422016)
190//line templates/gititem.qtpl:30
191	return qs422016
192//line templates/gititem.qtpl:30
193}