// Code generated by qtc from "gititem.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/gititem.qtpl:1 package templates //line templates/gititem.qtpl:1 import "context" //line templates/gititem.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/gititem.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/gititem.qtpl:4 type GitItemBase interface { //line templates/gititem.qtpl:4 Nav(name, ref string) string //line templates/gititem.qtpl:4 StreamNav(qw422016 *qt422016.Writer, name, ref string) //line templates/gititem.qtpl:4 WriteNav(qq422016 qtio422016.Writer, name, ref string) //line templates/gititem.qtpl:4 GitContent(name, ref string) string //line templates/gititem.qtpl:4 StreamGitContent(qw422016 *qt422016.Writer, name, ref string) //line templates/gititem.qtpl:4 WriteGitContent(qq422016 qtio422016.Writer, name, ref string) //line templates/gititem.qtpl:4 } //line templates/gititem.qtpl:11 type GitItemPage struct { Name string Ref string GitItemBase } //line templates/gititem.qtpl:18 func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:18 qw422016.N().S(`Git | `) //line templates/gititem.qtpl:18 qw422016.E().S(p.Name) //line templates/gititem.qtpl:18 } //line templates/gititem.qtpl:18 func (p *GitItemPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:18 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititem.qtpl:18 p.StreamTitle(qw422016, ctx) //line templates/gititem.qtpl:18 qt422016.ReleaseWriter(qw422016) //line templates/gititem.qtpl:18 } //line templates/gititem.qtpl:18 func (p *GitItemPage) Title(ctx context.Context) string { //line templates/gititem.qtpl:18 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititem.qtpl:18 p.WriteTitle(qb422016, ctx) //line templates/gititem.qtpl:18 qs422016 := string(qb422016.B) //line templates/gititem.qtpl:18 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititem.qtpl:18 return qs422016 //line templates/gititem.qtpl:18 } //line templates/gititem.qtpl:20 func (p *GitItemPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:20 StreamNavbar(qw422016, ctx, Git) //line templates/gititem.qtpl:20 } //line templates/gititem.qtpl:20 func (p *GitItemPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:20 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititem.qtpl:20 p.StreamNavbar(qw422016, ctx) //line templates/gititem.qtpl:20 qt422016.ReleaseWriter(qw422016) //line templates/gititem.qtpl:20 } //line templates/gititem.qtpl:20 func (p *GitItemPage) Navbar(ctx context.Context) string { //line templates/gititem.qtpl:20 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititem.qtpl:20 p.WriteNavbar(qb422016, ctx) //line templates/gititem.qtpl:20 qs422016 := string(qb422016.B) //line templates/gititem.qtpl:20 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititem.qtpl:20 return qs422016 //line templates/gititem.qtpl:20 } //line templates/gititem.qtpl:22 func (p *GitItemPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:22 qw422016.N().S(` `) //line templates/gititem.qtpl:23 p.StreamNav(qw422016, p.Name, p.Ref) //line templates/gititem.qtpl:23 qw422016.N().S(`
`) //line templates/gititem.qtpl:25 p.StreamGitContent(qw422016, p.Name, p.Ref) //line templates/gititem.qtpl:25 qw422016.N().S(`
`) //line templates/gititem.qtpl:27 } //line templates/gititem.qtpl:27 func (p *GitItemPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:27 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititem.qtpl:27 p.StreamContent(qw422016, ctx) //line templates/gititem.qtpl:27 qt422016.ReleaseWriter(qw422016) //line templates/gititem.qtpl:27 } //line templates/gititem.qtpl:27 func (p *GitItemPage) Content(ctx context.Context) string { //line templates/gititem.qtpl:27 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititem.qtpl:27 p.WriteContent(qb422016, ctx) //line templates/gititem.qtpl:27 qs422016 := string(qb422016.B) //line templates/gititem.qtpl:27 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititem.qtpl:27 return qs422016 //line templates/gititem.qtpl:27 } //line templates/gititem.qtpl:29 func (p *GitItemPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:29 qw422016.N().S(` `) //line templates/gititem.qtpl:30 } //line templates/gititem.qtpl:30 func (p *GitItemPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gititem.qtpl:30 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititem.qtpl:30 p.StreamScript(qw422016, ctx) //line templates/gititem.qtpl:30 qt422016.ReleaseWriter(qw422016) //line templates/gititem.qtpl:30 } //line templates/gititem.qtpl:30 func (p *GitItemPage) Script(ctx context.Context) string { //line templates/gititem.qtpl:30 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititem.qtpl:30 p.WriteScript(qb422016, ctx) //line templates/gititem.qtpl:30 qs422016 := string(qb422016.B) //line templates/gititem.qtpl:30 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititem.qtpl:30 return qs422016 //line templates/gititem.qtpl:30 }