aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititem.qtpl.go')
-rw-r--r--templates/gititem.qtpl.go189
1 files changed, 96 insertions, 93 deletions
diff --git a/templates/gititem.qtpl.go b/templates/gititem.qtpl.go
index c9a00b2..5292e44 100644
--- a/templates/gititem.qtpl.go
+++ b/templates/gititem.qtpl.go
@@ -5,101 +5,71 @@
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:1
+//line templates/gititem.qtpl:3
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
type GitItemBase interface {
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
Nav(name, ref string) string
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
StreamNav(qw422016 *qt422016.Writer, name, ref string)
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
WriteNav(qq422016 qtio422016.Writer, name, ref string)
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
GitContent(name, ref string) string
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
StreamGitContent(qw422016 *qt422016.Writer, name, ref string)
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
WriteGitContent(qq422016 qtio422016.Writer, name, ref string)
-//line templates/gititem.qtpl:2
+//line templates/gititem.qtpl:4
}
-//line templates/gititem.qtpl:9
+//line templates/gititem.qtpl:11
type GitItemPage struct {
Name string
Ref string
GitItemBase
}
-//line templates/gititem.qtpl:16
-func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer) {
-//line templates/gititem.qtpl:16
- qw422016.N().S(`Git | `)
-//line templates/gititem.qtpl:16
- qw422016.E().S(p.Name)
-//line templates/gititem.qtpl:16
-}
-
-//line templates/gititem.qtpl:16
-func (p *GitItemPage) WriteTitle(qq422016 qtio422016.Writer) {
-//line templates/gititem.qtpl:16
- qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/gititem.qtpl:16
- p.StreamTitle(qw422016)
-//line templates/gititem.qtpl:16
- qt422016.ReleaseWriter(qw422016)
-//line templates/gititem.qtpl:16
-}
-
-//line templates/gititem.qtpl:16
-func (p *GitItemPage) Title() string {
-//line templates/gititem.qtpl:16
- qb422016 := qt422016.AcquireByteBuffer()
-//line templates/gititem.qtpl:16
- p.WriteTitle(qb422016)
-//line templates/gititem.qtpl:16
- qs422016 := string(qb422016.B)
-//line templates/gititem.qtpl:16
- qt422016.ReleaseByteBuffer(qb422016)
-//line templates/gititem.qtpl:16
- return qs422016
-//line templates/gititem.qtpl:16
-}
-
//line templates/gititem.qtpl:18
-func (p *GitItemPage) StreamNavbar(qw422016 *qt422016.Writer) {
+func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) {
//line templates/gititem.qtpl:18
- StreamNavbar(qw422016, Git)
+ 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) WriteNavbar(qq422016 qtio422016.Writer) {
+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.StreamNavbar(qw422016)
+ 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) Navbar() string {
+func (p *GitItemPage) Title(ctx context.Context) string {
//line templates/gititem.qtpl:18
qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititem.qtpl:18
- p.WriteNavbar(qb422016)
+ p.WriteTitle(qb422016, ctx)
//line templates/gititem.qtpl:18
qs422016 := string(qb422016.B)
//line templates/gititem.qtpl:18
@@ -110,81 +80,114 @@ func (p *GitItemPage) Navbar() string {
}
//line templates/gititem.qtpl:20
-func (p *GitItemPage) StreamContent(qw422016 *qt422016.Writer) {
+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:21
+//line templates/gititem.qtpl:23
p.StreamNav(qw422016, p.Name, p.Ref)
-//line templates/gititem.qtpl:21
+//line templates/gititem.qtpl:23
qw422016.N().S(`
<div class="container">
`)
-//line templates/gititem.qtpl:23
+//line templates/gititem.qtpl:25
p.StreamGitContent(qw422016, p.Name, p.Ref)
-//line templates/gititem.qtpl:23
+//line templates/gititem.qtpl:25
qw422016.N().S(`
</div>
`)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
}
-//line templates/gititem.qtpl:25
-func (p *GitItemPage) WriteContent(qq422016 qtio422016.Writer) {
-//line templates/gititem.qtpl:25
+//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:25
- p.StreamContent(qw422016)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
+ p.StreamContent(qw422016, ctx)
+//line templates/gititem.qtpl:27
qt422016.ReleaseWriter(qw422016)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
}
-//line templates/gititem.qtpl:25
-func (p *GitItemPage) Content() string {
-//line templates/gititem.qtpl:25
+//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:25
- p.WriteContent(qb422016)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
+ p.WriteContent(qb422016, ctx)
+//line templates/gititem.qtpl:27
qs422016 := string(qb422016.B)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
return qs422016
-//line templates/gititem.qtpl:25
+//line templates/gititem.qtpl:27
}
-//line templates/gititem.qtpl:27
-func (p *GitItemPage) StreamScript(qw422016 *qt422016.Writer) {
-//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:28
+//line templates/gititem.qtpl:30
}
-//line templates/gititem.qtpl:28
-func (p *GitItemPage) WriteScript(qq422016 qtio422016.Writer) {
-//line templates/gititem.qtpl:28
+//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:28
- p.StreamScript(qw422016)
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
+ p.StreamScript(qw422016, ctx)
+//line templates/gititem.qtpl:30
qt422016.ReleaseWriter(qw422016)
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
}
-//line templates/gititem.qtpl:28
-func (p *GitItemPage) Script() string {
-//line templates/gititem.qtpl:28
+//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:28
- p.WriteScript(qb422016)
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
+ p.WriteScript(qb422016, ctx)
+//line templates/gititem.qtpl:30
qs422016 := string(qb422016.B)
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
return qs422016
-//line templates/gititem.qtpl:28
+//line templates/gititem.qtpl:30
}