cerrado @ a36e98b8ae350eed0e9cde2ffeea0626c0f570c5

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