aboutsummaryrefslogtreecommitdiff
path: root/templates/base.qtpl.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 15:03:54 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 15:03:54 +0200
commit2fb43cc1271572d26298da70f823814cae87a3a0 (patch)
tree2147c691adc23b6833ab5a68670a31474a27135a /templates/base.qtpl.go
parenta47effe083d70cae7f039ff207087447a7a82ee0 (diff)
downloadcerrado-2fb43cc1271572d26298da70f823814cae87a3a0.tar.gz
cerrado-2fb43cc1271572d26298da70f823814cae87a3a0.tar.bz2
cerrado-2fb43cc1271572d26298da70f823814cae87a3a0.zip
chore: Regenerate go templates
Now they should have correct path for the source template file.
Diffstat (limited to 'templates/base.qtpl.go')
-rw-r--r--templates/base.qtpl.go96
1 files changed, 48 insertions, 48 deletions
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go
index b2356fe..51b2b8b 100644
--- a/templates/base.qtpl.go
+++ b/templates/base.qtpl.go
@@ -4,61 +4,61 @@
// This is a base page template. All the other template pages implement this interface.
//
-//line base.qtpl:3
+//line templates/base.qtpl:3
package templates
-//line base.qtpl:3
+//line templates/base.qtpl:3
import "strconv"
-//line base.qtpl:4
+//line templates/base.qtpl:4
import "time"
-//line base.qtpl:6
+//line templates/base.qtpl:6
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
-//line base.qtpl:6
+//line templates/base.qtpl:6
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
-//line base.qtpl:7
+//line templates/base.qtpl:7
var Slug = ""
-//line base.qtpl:11
+//line templates/base.qtpl:11
type Page interface {
-//line base.qtpl:11
+//line templates/base.qtpl:11
Title() string
-//line base.qtpl:11
+//line templates/base.qtpl:11
StreamTitle(qw422016 *qt422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
WriteTitle(qq422016 qtio422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
Content() string
-//line base.qtpl:11
+//line templates/base.qtpl:11
StreamContent(qw422016 *qt422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
WriteContent(qq422016 qtio422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
Script() string
-//line base.qtpl:11
+//line templates/base.qtpl:11
StreamScript(qw422016 *qt422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
WriteScript(qq422016 qtio422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
Navbar() string
-//line base.qtpl:11
+//line templates/base.qtpl:11
StreamNavbar(qw422016 *qt422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
WriteNavbar(qq422016 qtio422016.Writer)
-//line base.qtpl:11
+//line templates/base.qtpl:11
}
-//line base.qtpl:20
+//line templates/base.qtpl:20
func FromUInttoString(u *uint) string {
if u != nil {
return strconv.FormatUint(uint64(*u), 10)
@@ -66,21 +66,21 @@ func FromUInttoString(u *uint) string {
return ""
}
-//line base.qtpl:28
+//line templates/base.qtpl:28
func TimeFormat(t time.Time) string {
return t.Format("02.01.2006")
}
-//line base.qtpl:33
+//line templates/base.qtpl:33
func Ignore[T any](v T, _ error) T {
return v
}
// Page prints a page implementing Page interface.
-//line base.qtpl:39
+//line templates/base.qtpl:39
func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
-//line base.qtpl:39
+//line templates/base.qtpl:39
qw422016.N().S(`
<!DOCTYPE html>
<html lang="en">
@@ -88,14 +88,14 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
<meta charset="utf-8">
<link rel="icon" href="data:,">
<title>`)
-//line base.qtpl:45
+//line templates/base.qtpl:45
p.StreamTitle(qw422016)
-//line base.qtpl:45
+//line templates/base.qtpl:45
qw422016.N().S(`</title>
<link rel="stylesheet" href="/static/main`)
-//line base.qtpl:46
+//line templates/base.qtpl:46
qw422016.E().S(Slug)
-//line base.qtpl:46
+//line templates/base.qtpl:46
qw422016.N().S(`.css">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -105,50 +105,50 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
This project is under development, things may be broken or incomplete.
</div>
`)
-//line base.qtpl:54
+//line templates/base.qtpl:54
p.StreamNavbar(qw422016)
-//line base.qtpl:54
+//line templates/base.qtpl:54
qw422016.N().S(`
<div class="container">
`)
-//line base.qtpl:56
+//line templates/base.qtpl:56
p.StreamContent(qw422016)
-//line base.qtpl:56
+//line templates/base.qtpl:56
qw422016.N().S(`
</div>
</body>
`)
-//line base.qtpl:59
+//line templates/base.qtpl:59
p.StreamScript(qw422016)
-//line base.qtpl:59
+//line templates/base.qtpl:59
qw422016.N().S(`
</html>
`)
-//line base.qtpl:61
+//line templates/base.qtpl:61
}
-//line base.qtpl:61
+//line templates/base.qtpl:61
func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
-//line base.qtpl:61
+//line templates/base.qtpl:61
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:61
+//line templates/base.qtpl:61
StreamPageTemplate(qw422016, p)
-//line base.qtpl:61
+//line templates/base.qtpl:61
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:61
+//line templates/base.qtpl:61
}
-//line base.qtpl:61
+//line templates/base.qtpl:61
func PageTemplate(p Page) string {
-//line base.qtpl:61
+//line templates/base.qtpl:61
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:61
+//line templates/base.qtpl:61
WritePageTemplate(qb422016, p)
-//line base.qtpl:61
+//line templates/base.qtpl:61
qs422016 := string(qb422016.B)
-//line base.qtpl:61
+//line templates/base.qtpl:61
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:61
+//line templates/base.qtpl:61
return qs422016
-//line base.qtpl:61
+//line templates/base.qtpl:61
}