1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 19:56:16 +00:00
mycorrhiza/templates/http_stuff.qtpl.go
2020-08-31 22:52:26 +05:00

127 lines
3.2 KiB
Go

// Code generated by qtc from "http_stuff.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line templates/http_stuff.qtpl:1
package templates
//line templates/http_stuff.qtpl:1
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line templates/http_stuff.qtpl:1
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/http_stuff.qtpl:1
func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string) {
//line templates/http_stuff.qtpl:1
qw422016.N().S(`
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/static/common.css">
<title>`)
//line templates/http_stuff.qtpl:7
qw422016.E().S(title)
//line templates/http_stuff.qtpl:7
qw422016.N().S(`</title>
</head>
<body>
`)
//line templates/http_stuff.qtpl:10
qw422016.N().S(body)
//line templates/http_stuff.qtpl:10
qw422016.N().S(`
</body>
</html>
`)
//line templates/http_stuff.qtpl:13
}
//line templates/http_stuff.qtpl:13
func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string) {
//line templates/http_stuff.qtpl:13
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:13
StreamBaseHTML(qw422016, title, body)
//line templates/http_stuff.qtpl:13
qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:13
}
//line templates/http_stuff.qtpl:13
func BaseHTML(title, body string) string {
//line templates/http_stuff.qtpl:13
qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:13
WriteBaseHTML(qb422016, title, body)
//line templates/http_stuff.qtpl:13
qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:13
qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:13
return qs422016
//line templates/http_stuff.qtpl:13
}
//line templates/http_stuff.qtpl:15
func StreamPageListHTML(qw422016 *qt422016.Writer, tbody string) {
//line templates/http_stuff.qtpl:15
qw422016.N().S(`
<main>
<h1>List of pages</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Text path</th>
<th>Text type</th>
<th>Binary path</th>
<th>Binary type</th>
</tr>
</thead>
<tbody>
`)
//line templates/http_stuff.qtpl:29
qw422016.N().S(tbody)
//line templates/http_stuff.qtpl:29
qw422016.N().S(`
</tbody>
</table>
</main>
`)
//line templates/http_stuff.qtpl:33
}
//line templates/http_stuff.qtpl:33
func WritePageListHTML(qq422016 qtio422016.Writer, tbody string) {
//line templates/http_stuff.qtpl:33
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:33
StreamPageListHTML(qw422016, tbody)
//line templates/http_stuff.qtpl:33
qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:33
}
//line templates/http_stuff.qtpl:33
func PageListHTML(tbody string) string {
//line templates/http_stuff.qtpl:33
qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:33
WritePageListHTML(qb422016, tbody)
//line templates/http_stuff.qtpl:33
qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:33
qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:33
return qs422016
//line templates/http_stuff.qtpl:33
}