2021-07-21 23:04:00 +00:00
|
|
|
// Code generated by qtc from "baseof.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
2021-12-29 21:08:09 +00:00
|
|
|
//line web/baseof.qtpl:1
|
2021-07-21 23:04:00 +00:00
|
|
|
package web
|
|
|
|
|
2021-12-29 21:08:09 +00:00
|
|
|
//line web/baseof.qtpl:1
|
|
|
|
import (
|
2022-06-09 23:12:21 +00:00
|
|
|
"runtime/debug"
|
|
|
|
|
2021-12-29 21:08:09 +00:00
|
|
|
"golang.org/x/text/language"
|
|
|
|
"golang.org/x/text/message"
|
|
|
|
|
2022-03-13 10:58:34 +00:00
|
|
|
"source.toby3d.me/toby3d/auth/internal/domain"
|
2021-12-29 21:08:09 +00:00
|
|
|
)
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2021-07-21 23:04:00 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2021-07-21 23:04:00 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2021-07-21 23:04:00 +00:00
|
|
|
type Page interface {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
body() string
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
streambody(qw422016 *qt422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
writebody(qq422016 qtio422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
head() string
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
streamhead(qw422016 *qt422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
writehead(qq422016 qtio422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
lang() string
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
streamlang(qw422016 *qt422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
writelang(qq422016 qtio422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
t(format message.Reference, args ...any) string
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
streamt(qw422016 *qt422016.Writer, format message.Reference, args ...any)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
writet(qq422016 qtio422016.Writer, format message.Reference, args ...any)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
title() string
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
streamtitle(qw422016 *qt422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2023-08-06 00:42:38 +00:00
|
|
|
writetitle(qq422016 qtio422016.Writer)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:10
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:18
|
2021-12-29 21:08:09 +00:00
|
|
|
type BaseOf struct {
|
|
|
|
Config *domain.Config
|
|
|
|
Language language.Tag
|
|
|
|
Printer *message.Printer
|
|
|
|
}
|
2021-07-21 23:04:00 +00:00
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:25
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) streamlang(qw422016 *qt422016.Writer) {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:26
|
2021-12-29 21:08:09 +00:00
|
|
|
if p.Language != language.Und {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:27
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.E().S(p.Language.String())
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:28
|
2021-12-29 21:08:09 +00:00
|
|
|
} else {
|
2022-01-04 17:31:33 +00:00
|
|
|
//line web/baseof.qtpl:28
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(`en`)
|
|
|
|
//line web/baseof.qtpl:30
|
2021-12-29 21:08:09 +00:00
|
|
|
}
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) writelang(qq422016 qtio422016.Writer) {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamlang(qw422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) lang() string {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2023-08-06 00:42:38 +00:00
|
|
|
p.writelang(qb422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
return qs422016
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:31
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:35
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) streamtitle(qw422016 *qt422016.Writer) {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:35
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` `)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:36
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.E().S(p.Config.Name)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:36
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` `)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) writetitle(qq422016 qtio422016.Writer) {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamtitle(qw422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) title() string {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2023-08-06 00:42:38 +00:00
|
|
|
p.writetitle(qb422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
return qs422016
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:37
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:39
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) streamhead(qw422016 *qt422016.Writer) {
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:39
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` `)
|
2022-06-09 23:12:21 +00:00
|
|
|
//line web/baseof.qtpl:40
|
2023-01-16 10:33:37 +00:00
|
|
|
qw422016.N().S(` <link rel="icon" href="/favicon.ico" sizes="any"> <link rel="icon" href="/icon.svg" type="image/svg+xml"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="manifest" href="/manifest.webmanifest"> `)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) writehead(qq422016 qtio422016.Writer) {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamhead(qw422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) head() string {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2023-08-06 00:42:38 +00:00
|
|
|
p.writehead(qb422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
return qs422016
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:54
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) streambody(qw422016 *qt422016.Writer) {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) writebody(qq422016 qtio422016.Writer) {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streambody(qw422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p *BaseOf) body() string {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2023-08-06 00:42:38 +00:00
|
|
|
p.writebody(qb422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
return qs422016
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:56
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:58
|
2021-12-29 21:08:09 +00:00
|
|
|
func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:58
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` <!DOCTYPE html> <html class="page" lang="`)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:61
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamlang(qw422016)
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:61
|
|
|
|
qw422016.N().S(`"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:68
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamhead(qw422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:68
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(` <title>`)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:70
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamtitle(qw422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:70
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(`</title> </head> <body class="page__body body"> `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:74
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streambody(qw422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:74
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(` `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:77
|
2022-06-09 23:12:21 +00:00
|
|
|
var path, vcsRevision string
|
|
|
|
|
|
|
|
if bi, ok := debug.ReadBuildInfo(); ok {
|
|
|
|
path = bi.Path
|
|
|
|
|
|
|
|
for i := range bi.Settings {
|
|
|
|
if bi.Settings[i].Key != "vcs.revision" {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
vcsRevision = bi.Settings[i].Value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:90
|
2023-01-16 10:19:22 +00:00
|
|
|
qw422016.N().S(` `)
|
|
|
|
//line web/baseof.qtpl:92
|
2022-06-09 23:12:21 +00:00
|
|
|
if vcsRevision != "" {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:92
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(` <footer> <small> `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:95
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamt(qw422016, "version")
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:95
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(` <a href="https://`)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:96
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.E().S(path)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:96
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(`/commit/`)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:96
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.E().S(vcsRevision)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:96
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(`" target="_blank"> `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:98
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.E().S(vcsRevision[:7])
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:98
|
2022-06-09 23:12:21 +00:00
|
|
|
qw422016.N().S(`</a> </small> </footer> `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:102
|
2022-06-09 23:12:21 +00:00
|
|
|
}
|
2022-07-28 18:13:24 +00:00
|
|
|
//line web/baseof.qtpl:102
|
2023-01-16 10:19:22 +00:00
|
|
|
qw422016.N().S(` </body> </html> `)
|
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
func WriteTemplate(qq422016 qtio422016.Writer, p Page) {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
StreamTemplate(qw422016, p)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
func Template(p Page) string {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
WriteTemplate(qb422016, p)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
return qs422016
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:105
|
2021-12-29 21:08:09 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:107
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p BaseOf) streamt(qw422016 *qt422016.Writer, format message.Reference, args ...any) {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:107
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:108
|
2023-08-05 19:10:24 +00:00
|
|
|
qw422016.N().S(p.Printer.Sprintf(format, args...))
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:108
|
2021-12-29 21:08:09 +00:00
|
|
|
qw422016.N().S(` `)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p BaseOf) writet(qq422016 qtio422016.Writer, format message.Reference, args ...any) {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2023-08-06 00:42:38 +00:00
|
|
|
p.streamt(qw422016, format, args...)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2023-08-06 00:42:38 +00:00
|
|
|
func (p BaseOf) t(format message.Reference, args ...any) string {
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2023-08-06 00:42:38 +00:00
|
|
|
p.writet(qb422016, format, args...)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
return qs422016
|
2023-01-16 10:19:22 +00:00
|
|
|
//line web/baseof.qtpl:109
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|