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.go184
1 files changed, 96 insertions, 88 deletions
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go
index 2f419c6..6d4d0a0 100644
--- a/templates/base.qtpl.go
+++ b/templates/base.qtpl.go
@@ -10,52 +10,55 @@ package templates
//line base.qtpl:3
import "strconv"
-//line base.qtpl:5
+//line base.qtpl:4
+import "time"
+
+//line base.qtpl:6
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
-//line base.qtpl:5
+//line base.qtpl:6
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
-//line base.qtpl:6
+//line base.qtpl:7
var Slug = ""
-//line base.qtpl:10
+//line base.qtpl:11
type Page interface {
-//line base.qtpl:10
+//line base.qtpl:11
Title() string
-//line base.qtpl:10
+//line base.qtpl:11
StreamTitle(qw422016 *qt422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
WriteTitle(qq422016 qtio422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
Content() string
-//line base.qtpl:10
+//line base.qtpl:11
StreamContent(qw422016 *qt422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
WriteContent(qq422016 qtio422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
Script() string
-//line base.qtpl:10
+//line base.qtpl:11
StreamScript(qw422016 *qt422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
WriteScript(qq422016 qtio422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
Navbar() string
-//line base.qtpl:10
+//line base.qtpl:11
StreamNavbar(qw422016 *qt422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
WriteNavbar(qq422016 qtio422016.Writer)
-//line base.qtpl:10
+//line base.qtpl:11
}
-//line base.qtpl:19
+//line base.qtpl:20
func FromUInttoString(u *uint) string {
if u != nil {
return strconv.FormatUint(uint64(*u), 10)
@@ -63,174 +66,179 @@ func FromUInttoString(u *uint) string {
return ""
}
+//line base.qtpl:28
+func TimeFormat(t time.Time) string {
+ return t.Format("2006-01-02")
+}
+
// Page prints a page implementing Page interface.
-//line base.qtpl:28
+//line base.qtpl:34
func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
-//line base.qtpl:28
+//line base.qtpl:34
qw422016.N().S(`
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="data:,">
<title>cerrado | `)
-//line base.qtpl:33
+//line base.qtpl:39
p.StreamTitle(qw422016)
-//line base.qtpl:33
+//line base.qtpl:39
qw422016.N().S(`</title>
<link rel="stylesheet" href="/static/main`)
-//line base.qtpl:34
+//line base.qtpl:40
qw422016.E().S(Slug)
-//line base.qtpl:34
+//line base.qtpl:40
qw422016.N().S(`.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
`)
-//line base.qtpl:38
+//line base.qtpl:44
p.StreamNavbar(qw422016)
-//line base.qtpl:38
+//line base.qtpl:44
qw422016.N().S(`
<div class="container">
`)
-//line base.qtpl:40
+//line base.qtpl:46
p.StreamContent(qw422016)
-//line base.qtpl:40
+//line base.qtpl:46
qw422016.N().S(`
</div>
</body>
`)
-//line base.qtpl:43
+//line base.qtpl:49
p.StreamScript(qw422016)
-//line base.qtpl:43
+//line base.qtpl:49
qw422016.N().S(`
</html>
`)
-//line base.qtpl:45
+//line base.qtpl:51
}
-//line base.qtpl:45
+//line base.qtpl:51
func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
-//line base.qtpl:45
+//line base.qtpl:51
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:45
+//line base.qtpl:51
StreamPageTemplate(qw422016, p)
-//line base.qtpl:45
+//line base.qtpl:51
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:45
+//line base.qtpl:51
}
-//line base.qtpl:45
+//line base.qtpl:51
func PageTemplate(p Page) string {
-//line base.qtpl:45
+//line base.qtpl:51
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:45
+//line base.qtpl:51
WritePageTemplate(qb422016, p)
-//line base.qtpl:45
+//line base.qtpl:51
qs422016 := string(qb422016.B)
-//line base.qtpl:45
+//line base.qtpl:51
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:45
+//line base.qtpl:51
return qs422016
-//line base.qtpl:45
+//line base.qtpl:51
}
-//line base.qtpl:47
+//line base.qtpl:53
type BasePage struct{}
-//line base.qtpl:48
+//line base.qtpl:54
func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) {
-//line base.qtpl:48
+//line base.qtpl:54
qw422016.N().S(`Empty`)
-//line base.qtpl:48
+//line base.qtpl:54
}
-//line base.qtpl:48
+//line base.qtpl:54
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) {
-//line base.qtpl:48
+//line base.qtpl:54
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:48
+//line base.qtpl:54
p.StreamTitle(qw422016)
-//line base.qtpl:48
+//line base.qtpl:54
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:48
+//line base.qtpl:54
}
-//line base.qtpl:48
+//line base.qtpl:54
func (p *BasePage) Title() string {
-//line base.qtpl:48
+//line base.qtpl:54
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:48
+//line base.qtpl:54
p.WriteTitle(qb422016)
-//line base.qtpl:48
+//line base.qtpl:54
qs422016 := string(qb422016.B)
-//line base.qtpl:48
+//line base.qtpl:54
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:48
+//line base.qtpl:54
return qs422016
-//line base.qtpl:48
+//line base.qtpl:54
}
-//line base.qtpl:49
+//line base.qtpl:55
func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) {
-//line base.qtpl:49
+//line base.qtpl:55
qw422016.N().S(`HelloWorld`)
-//line base.qtpl:49
+//line base.qtpl:55
}
-//line base.qtpl:49
+//line base.qtpl:55
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) {
-//line base.qtpl:49
+//line base.qtpl:55
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:49
+//line base.qtpl:55
p.StreamBody(qw422016)
-//line base.qtpl:49
+//line base.qtpl:55
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:49
+//line base.qtpl:55
}
-//line base.qtpl:49
+//line base.qtpl:55
func (p *BasePage) Body() string {
-//line base.qtpl:49
+//line base.qtpl:55
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:49
+//line base.qtpl:55
p.WriteBody(qb422016)
-//line base.qtpl:49
+//line base.qtpl:55
qs422016 := string(qb422016.B)
-//line base.qtpl:49
+//line base.qtpl:55
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:49
+//line base.qtpl:55
return qs422016
-//line base.qtpl:49
+//line base.qtpl:55
}
-//line base.qtpl:50
+//line base.qtpl:56
func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) {
-//line base.qtpl:50
+//line base.qtpl:56
}
-//line base.qtpl:50
+//line base.qtpl:56
func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) {
-//line base.qtpl:50
+//line base.qtpl:56
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:50
+//line base.qtpl:56
p.StreamScript(qw422016)
-//line base.qtpl:50
+//line base.qtpl:56
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:50
+//line base.qtpl:56
}
-//line base.qtpl:50
+//line base.qtpl:56
func (p *BasePage) Script() string {
-//line base.qtpl:50
+//line base.qtpl:56
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:50
+//line base.qtpl:56
p.WriteScript(qb422016)
-//line base.qtpl:50
+//line base.qtpl:56
qs422016 := string(qb422016.B)
-//line base.qtpl:50
+//line base.qtpl:56
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:50
+//line base.qtpl:56
return qs422016
-//line base.qtpl:50
+//line base.qtpl:56
}