Files
huso/season.qtpl.go
2022-04-16 18:56:29 +02:00

82 lines
2.5 KiB
Go

// Code generated by qtc from "season.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line season.qtpl:1
package main
//line season.qtpl:2
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line season.qtpl:2
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line season.qtpl:2
func StreamIndex(qw422016 *qt422016.Writer, animes []Anime) {
//line season.qtpl:2
qw422016.N().S(`
`)
//line season.qtpl:3
qw422016.N().S(` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * { font-family: sans-serif; } table { border-spacing: 0; } td, th { text-align: left; padding: 0 0.5em; } td:first-child, th:first-child { padding-left: 0; } td:last-child, th:first-child { padding-right: 0; } body { background-color: #1a1a1a; color: #fff; } </style> <title>HUSO - Hanami universeller Serien Organizer</title> </head> <body> <h1>HUSO - Hanami universeller Serien Organizer</h1> <h2>Anime</h2> <table> <tr> <td><strong>Airing 📺</strong></td> <td>`)
//line season.qtpl:26
qw422016.N().D(len(animes))
//line season.qtpl:26
qw422016.N().S(`</td> </tr> </table> </br> <table> `)
//line season.qtpl:31
for _, anime := range animes {
//line season.qtpl:31
qw422016.N().S(` <tr> <td><strong>`)
//line season.qtpl:33
qw422016.E().S(anime.Title)
//line season.qtpl:33
qw422016.N().S(`</strong></td> <td>`)
//line season.qtpl:34
qw422016.N().DL(anime.Anime)
//line season.qtpl:34
qw422016.N().S(`</td> <td>`)
//line season.qtpl:35
qw422016.N().D(anime.Episodes)
//line season.qtpl:35
qw422016.N().S(`</td> </tr> `)
//line season.qtpl:37
}
//line season.qtpl:37
qw422016.N().S(` </table> </body> </html> `)
//line season.qtpl:41
qw422016.N().S(`
`)
//line season.qtpl:42
}
//line season.qtpl:42
func WriteIndex(qq422016 qtio422016.Writer, animes []Anime) {
//line season.qtpl:42
qw422016 := qt422016.AcquireWriter(qq422016)
//line season.qtpl:42
StreamIndex(qw422016, animes)
//line season.qtpl:42
qt422016.ReleaseWriter(qw422016)
//line season.qtpl:42
}
//line season.qtpl:42
func Index(animes []Anime) string {
//line season.qtpl:42
qb422016 := qt422016.AcquireByteBuffer()
//line season.qtpl:42
WriteIndex(qb422016, animes)
//line season.qtpl:42
qs422016 := string(qb422016.B)
//line season.qtpl:42
qt422016.ReleaseByteBuffer(qb422016)
//line season.qtpl:42
return qs422016
//line season.qtpl:42
}