aboutsummaryrefslogtreecommitdiff
path: root/templates/base.qtpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.qtpl.go')
-rw-r--r--templates/base.qtpl.go183
1 files changed, 93 insertions, 90 deletions
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go
index 15c9e4f..2f419c6 100644
--- a/templates/base.qtpl.go
+++ b/templates/base.qtpl.go
@@ -24,29 +24,38 @@ var (
)
//line base.qtpl:6
+var Slug = ""
+
+//line base.qtpl:10
type Page interface {
-//line base.qtpl:6
+//line base.qtpl:10
Title() string
-//line base.qtpl:6
+//line base.qtpl:10
StreamTitle(qw422016 *qt422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
WriteTitle(qq422016 qtio422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
Content() string
-//line base.qtpl:6
+//line base.qtpl:10
StreamContent(qw422016 *qt422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
WriteContent(qq422016 qtio422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
Script() string
-//line base.qtpl:6
+//line base.qtpl:10
StreamScript(qw422016 *qt422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
WriteScript(qq422016 qtio422016.Writer)
-//line base.qtpl:6
+//line base.qtpl:10
+ Navbar() string
+//line base.qtpl:10
+ StreamNavbar(qw422016 *qt422016.Writer)
+//line base.qtpl:10
+ WriteNavbar(qq422016 qtio422016.Writer)
+//line base.qtpl:10
}
-//line base.qtpl:14
+//line base.qtpl:19
func FromUInttoString(u *uint) string {
if u != nil {
return strconv.FormatUint(uint64(*u), 10)
@@ -54,180 +63,174 @@ func FromUInttoString(u *uint) string {
return ""
}
-//line base.qtpl:23
-var Slug = ""
-
// Page prints a page implementing Page interface.
-//line base.qtpl:27
+//line base.qtpl:28
func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
-//line base.qtpl:27
+//line base.qtpl:28
qw422016.N().S(`
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="data:,">
<title>cerrado | `)
-//line base.qtpl:32
+//line base.qtpl:33
p.StreamTitle(qw422016)
-//line base.qtpl:32
+//line base.qtpl:33
qw422016.N().S(`</title>
<link rel="stylesheet" href="/static/main`)
-//line base.qtpl:33
+//line base.qtpl:34
qw422016.E().S(Slug)
-//line base.qtpl:33
+//line base.qtpl:34
qw422016.N().S(`.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
- <nav class="container navbar navbar-expand-sm">
- <div class="navbar-nav">
- <a class="nav-link" href="/git">git</a>
- <a class="nav-link" href="/list">list</a>
- <a class="nav-link" href="/about">about</a>
- <a class="nav-link" href="/config">config</a>
- </div>
- </nav>
+ `)
+//line base.qtpl:38
+ p.StreamNavbar(qw422016)
+//line base.qtpl:38
+ qw422016.N().S(`
<div class="container">
`)
-//line base.qtpl:46
+//line base.qtpl:40
p.StreamContent(qw422016)
-//line base.qtpl:46
+//line base.qtpl:40
qw422016.N().S(`
</div>
</body>
`)
-//line base.qtpl:49
+//line base.qtpl:43
p.StreamScript(qw422016)
-//line base.qtpl:49
+//line base.qtpl:43
qw422016.N().S(`
</html>
`)
-//line base.qtpl:51
+//line base.qtpl:45
}
-//line base.qtpl:51
+//line base.qtpl:45
func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
-//line base.qtpl:51
+//line base.qtpl:45
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:51
+//line base.qtpl:45
StreamPageTemplate(qw422016, p)
-//line base.qtpl:51
+//line base.qtpl:45
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:51
+//line base.qtpl:45
}
-//line base.qtpl:51
+//line base.qtpl:45
func PageTemplate(p Page) string {
-//line base.qtpl:51
+//line base.qtpl:45
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:51
+//line base.qtpl:45
WritePageTemplate(qb422016, p)
-//line base.qtpl:51
+//line base.qtpl:45
qs422016 := string(qb422016.B)
-//line base.qtpl:51
+//line base.qtpl:45
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:51
+//line base.qtpl:45
return qs422016
-//line base.qtpl:51
+//line base.qtpl:45
}
-//line base.qtpl:53
+//line base.qtpl:47
type BasePage struct{}
-//line base.qtpl:54
+//line base.qtpl:48
func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) {
-//line base.qtpl:54
+//line base.qtpl:48
qw422016.N().S(`Empty`)
-//line base.qtpl:54
+//line base.qtpl:48
}
-//line base.qtpl:54
+//line base.qtpl:48
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) {
-//line base.qtpl:54
+//line base.qtpl:48
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:54
+//line base.qtpl:48
p.StreamTitle(qw422016)
-//line base.qtpl:54
+//line base.qtpl:48
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:54
+//line base.qtpl:48
}
-//line base.qtpl:54
+//line base.qtpl:48
func (p *BasePage) Title() string {
-//line base.qtpl:54
+//line base.qtpl:48
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:54
+//line base.qtpl:48
p.WriteTitle(qb422016)
-//line base.qtpl:54
+//line base.qtpl:48
qs422016 := string(qb422016.B)
-//line base.qtpl:54
+//line base.qtpl:48
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:54
+//line base.qtpl:48
return qs422016
-//line base.qtpl:54
+//line base.qtpl:48
}
-//line base.qtpl:55
+//line base.qtpl:49
func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) {
-//line base.qtpl:55
+//line base.qtpl:49
qw422016.N().S(`HelloWorld`)
-//line base.qtpl:55
+//line base.qtpl:49
}
-//line base.qtpl:55
+//line base.qtpl:49
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) {
-//line base.qtpl:55
+//line base.qtpl:49
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:55
+//line base.qtpl:49
p.StreamBody(qw422016)
-//line base.qtpl:55
+//line base.qtpl:49
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:55
+//line base.qtpl:49
}
-//line base.qtpl:55
+//line base.qtpl:49
func (p *BasePage) Body() string {
-//line base.qtpl:55
+//line base.qtpl:49
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:55
+//line base.qtpl:49
p.WriteBody(qb422016)
-//line base.qtpl:55
+//line base.qtpl:49
qs422016 := string(qb422016.B)
-//line base.qtpl:55
+//line base.qtpl:49
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:55
+//line base.qtpl:49
return qs422016
-//line base.qtpl:55
+//line base.qtpl:49
}
-//line base.qtpl:56
+//line base.qtpl:50
func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) {
-//line base.qtpl:56
+//line base.qtpl:50
}
-//line base.qtpl:56
+//line base.qtpl:50
func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) {
-//line base.qtpl:56
+//line base.qtpl:50
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:56
+//line base.qtpl:50
p.StreamScript(qw422016)
-//line base.qtpl:56
+//line base.qtpl:50
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:56
+//line base.qtpl:50
}
-//line base.qtpl:56
+//line base.qtpl:50
func (p *BasePage) Script() string {
-//line base.qtpl:56
+//line base.qtpl:50
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:56
+//line base.qtpl:50
p.WriteScript(qb422016)
-//line base.qtpl:56
+//line base.qtpl:50
qs422016 := string(qb422016.B)
-//line base.qtpl:56
+//line base.qtpl:50
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:56
+//line base.qtpl:50
return qs422016
-//line base.qtpl:56
+//line base.qtpl:50
}