aboutsummaryrefslogtreecommitdiff
path: root/templates/helloworld.qtpl.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-05-05 19:02:43 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-05-05 19:02:43 +0200
commitf5b5f72f7eaf14692b8036c3698037c647b2423a (patch)
treef74eb37277771fd1dceec702d1f3820fb553dc2a /templates/helloworld.qtpl.go
parent129c73757036a8073467a2046bc73e95918f1ca1 (diff)
downloadcerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.tar.gz
cerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.tar.bz2
cerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.zip
feat: Add qtc templating
Diffstat (limited to 'templates/helloworld.qtpl.go')
-rw-r--r--templates/helloworld.qtpl.go131
1 files changed, 131 insertions, 0 deletions
diff --git a/templates/helloworld.qtpl.go b/templates/helloworld.qtpl.go
new file mode 100644
index 0000000..9ef78f5
--- /dev/null
+++ b/templates/helloworld.qtpl.go
@@ -0,0 +1,131 @@
+// Code generated by qtc from "helloworld.qtpl". DO NOT EDIT.
+// See https://github.com/valyala/quicktemplate for details.
+
+//line helloworld.qtpl:1
+package templates
+
+//line helloworld.qtpl:1
+import (
+ qtio422016 "io"
+
+ qt422016 "github.com/valyala/quicktemplate"
+)
+
+//line helloworld.qtpl:1
+var (
+ _ = qtio422016.Copy
+ _ = qt422016.AcquireByteBuffer
+)
+
+//line helloworld.qtpl:2
+type HelloPage struct {
+ Body string
+}
+
+//line helloworld.qtpl:7
+func (p *HelloPage) StreamTitle(qw422016 *qt422016.Writer) {
+//line helloworld.qtpl:7
+ qw422016.N().S(`Hello`)
+//line helloworld.qtpl:7
+}
+
+//line helloworld.qtpl:7
+func (p *HelloPage) WriteTitle(qq422016 qtio422016.Writer) {
+//line helloworld.qtpl:7
+ qw422016 := qt422016.AcquireWriter(qq422016)
+//line helloworld.qtpl:7
+ p.StreamTitle(qw422016)
+//line helloworld.qtpl:7
+ qt422016.ReleaseWriter(qw422016)
+//line helloworld.qtpl:7
+}
+
+//line helloworld.qtpl:7
+func (p *HelloPage) Title() string {
+//line helloworld.qtpl:7
+ qb422016 := qt422016.AcquireByteBuffer()
+//line helloworld.qtpl:7
+ p.WriteTitle(qb422016)
+//line helloworld.qtpl:7
+ qs422016 := string(qb422016.B)
+//line helloworld.qtpl:7
+ qt422016.ReleaseByteBuffer(qb422016)
+//line helloworld.qtpl:7
+ return qs422016
+//line helloworld.qtpl:7
+}
+
+//line helloworld.qtpl:9
+func (p *HelloPage) StreamContent(qw422016 *qt422016.Writer) {
+//line helloworld.qtpl:9
+ qw422016.N().S(`
+HelloWorld
+
+`)
+//line helloworld.qtpl:12
+ qw422016.E().S(p.Body)
+//line helloworld.qtpl:12
+ qw422016.N().S(`
+`)
+//line helloworld.qtpl:13
+}
+
+//line helloworld.qtpl:13
+func (p *HelloPage) WriteContent(qq422016 qtio422016.Writer) {
+//line helloworld.qtpl:13
+ qw422016 := qt422016.AcquireWriter(qq422016)
+//line helloworld.qtpl:13
+ p.StreamContent(qw422016)
+//line helloworld.qtpl:13
+ qt422016.ReleaseWriter(qw422016)
+//line helloworld.qtpl:13
+}
+
+//line helloworld.qtpl:13
+func (p *HelloPage) Content() string {
+//line helloworld.qtpl:13
+ qb422016 := qt422016.AcquireByteBuffer()
+//line helloworld.qtpl:13
+ p.WriteContent(qb422016)
+//line helloworld.qtpl:13
+ qs422016 := string(qb422016.B)
+//line helloworld.qtpl:13
+ qt422016.ReleaseByteBuffer(qb422016)
+//line helloworld.qtpl:13
+ return qs422016
+//line helloworld.qtpl:13
+}
+
+//line helloworld.qtpl:15
+func (p *HelloPage) StreamScript(qw422016 *qt422016.Writer) {
+//line helloworld.qtpl:15
+ qw422016.N().S(`
+`)
+//line helloworld.qtpl:16
+}
+
+//line helloworld.qtpl:16
+func (p *HelloPage) WriteScript(qq422016 qtio422016.Writer) {
+//line helloworld.qtpl:16
+ qw422016 := qt422016.AcquireWriter(qq422016)
+//line helloworld.qtpl:16
+ p.StreamScript(qw422016)
+//line helloworld.qtpl:16
+ qt422016.ReleaseWriter(qw422016)
+//line helloworld.qtpl:16
+}
+
+//line helloworld.qtpl:16
+func (p *HelloPage) Script() string {
+//line helloworld.qtpl:16
+ qb422016 := qt422016.AcquireByteBuffer()
+//line helloworld.qtpl:16
+ p.WriteScript(qb422016)
+//line helloworld.qtpl:16
+ qs422016 := string(qb422016.B)
+//line helloworld.qtpl:16
+ qt422016.ReleaseByteBuffer(qb422016)
+//line helloworld.qtpl:16
+ return qs422016
+//line helloworld.qtpl:16
+}