cerrado @ a47effe083d70cae7f039ff207087447a7a82ee0

  1// Code generated by qtc from "base.qtpl". DO NOT EDIT.
  2// See https://github.com/valyala/quicktemplate for details.
  3
  4// This is a base page template. All the other template pages implement this interface.
  5//
  6
  7//line base.qtpl:3
  8package templates
  9
 10//line base.qtpl:3
 11import "strconv"
 12
 13//line base.qtpl:4
 14import "time"
 15
 16//line base.qtpl:6
 17import (
 18	qtio422016 "io"
 19
 20	qt422016 "github.com/valyala/quicktemplate"
 21)
 22
 23//line base.qtpl:6
 24var (
 25	_ = qtio422016.Copy
 26	_ = qt422016.AcquireByteBuffer
 27)
 28
 29//line base.qtpl:7
 30var Slug = ""
 31
 32//line base.qtpl:11
 33type Page interface {
 34//line base.qtpl:11
 35	Title() string
 36//line base.qtpl:11
 37	StreamTitle(qw422016 *qt422016.Writer)
 38//line base.qtpl:11
 39	WriteTitle(qq422016 qtio422016.Writer)
 40//line base.qtpl:11
 41	Content() string
 42//line base.qtpl:11
 43	StreamContent(qw422016 *qt422016.Writer)
 44//line base.qtpl:11
 45	WriteContent(qq422016 qtio422016.Writer)
 46//line base.qtpl:11
 47	Script() string
 48//line base.qtpl:11
 49	StreamScript(qw422016 *qt422016.Writer)
 50//line base.qtpl:11
 51	WriteScript(qq422016 qtio422016.Writer)
 52//line base.qtpl:11
 53	Navbar() string
 54//line base.qtpl:11
 55	StreamNavbar(qw422016 *qt422016.Writer)
 56//line base.qtpl:11
 57	WriteNavbar(qq422016 qtio422016.Writer)
 58//line base.qtpl:11
 59}
 60
 61//line base.qtpl:20
 62func FromUInttoString(u *uint) string {
 63	if u != nil {
 64		return strconv.FormatUint(uint64(*u), 10)
 65	}
 66	return ""
 67}
 68
 69//line base.qtpl:28
 70func TimeFormat(t time.Time) string {
 71	return t.Format("02.01.2006")
 72}
 73
 74//line base.qtpl:33
 75func Ignore[T any](v T, _ error) T {
 76	return v
 77}
 78
 79// Page prints a page implementing Page interface.
 80
 81//line base.qtpl:39
 82func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
 83//line base.qtpl:39
 84	qw422016.N().S(`
 85<!DOCTYPE html>
 86<html lang="en">
 87  <head>
 88    <meta charset="utf-8">
 89    <link rel="icon" href="data:,">
 90    <title>`)
 91//line base.qtpl:45
 92	p.StreamTitle(qw422016)
 93//line base.qtpl:45
 94	qw422016.N().S(`</title> 
 95    <link rel="stylesheet" href="/static/main`)
 96//line base.qtpl:46
 97	qw422016.E().S(Slug)
 98//line base.qtpl:46
 99	qw422016.N().S(`.css">
100    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
101    <meta name="viewport" content="width=device-width, initial-scale=1" />
102  </head>
103  <body>
104    <div class="alert alert-warning text-center" role="alert">
105        This project is under development, things may be broken or incomplete.
106    </div>
107    `)
108//line base.qtpl:54
109	p.StreamNavbar(qw422016)
110//line base.qtpl:54
111	qw422016.N().S(`
112    <div class="container">
113      `)
114//line base.qtpl:56
115	p.StreamContent(qw422016)
116//line base.qtpl:56
117	qw422016.N().S(`
118    </div>
119  </body>
120  `)
121//line base.qtpl:59
122	p.StreamScript(qw422016)
123//line base.qtpl:59
124	qw422016.N().S(`
125</html>
126`)
127//line base.qtpl:61
128}
129
130//line base.qtpl:61
131func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
132//line base.qtpl:61
133	qw422016 := qt422016.AcquireWriter(qq422016)
134//line base.qtpl:61
135	StreamPageTemplate(qw422016, p)
136//line base.qtpl:61
137	qt422016.ReleaseWriter(qw422016)
138//line base.qtpl:61
139}
140
141//line base.qtpl:61
142func PageTemplate(p Page) string {
143//line base.qtpl:61
144	qb422016 := qt422016.AcquireByteBuffer()
145//line base.qtpl:61
146	WritePageTemplate(qb422016, p)
147//line base.qtpl:61
148	qs422016 := string(qb422016.B)
149//line base.qtpl:61
150	qt422016.ReleaseByteBuffer(qb422016)
151//line base.qtpl:61
152	return qs422016
153//line base.qtpl:61
154}