diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-05 19:02:43 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-05 19:02:43 +0200 |
commit | f5b5f72f7eaf14692b8036c3698037c647b2423a (patch) | |
tree | f74eb37277771fd1dceec702d1f3820fb553dc2a /templates/helloworld.qtpl | |
parent | 129c73757036a8073467a2046bc73e95918f1ca1 (diff) | |
download | cerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.tar.gz cerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.tar.bz2 cerrado-f5b5f72f7eaf14692b8036c3698037c647b2423a.zip |
feat: Add qtc templating
Diffstat (limited to 'templates/helloworld.qtpl')
-rw-r--r-- | templates/helloworld.qtpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/helloworld.qtpl b/templates/helloworld.qtpl new file mode 100644 index 0000000..02c0968 --- /dev/null +++ b/templates/helloworld.qtpl @@ -0,0 +1,16 @@ +{% code +type HelloPage struct { + Body string +} +%} + +{% func (p *HelloPage) Title() %}Hello{% endfunc %} + +{% func (p *HelloPage) Content() %} +HelloWorld + +{%s p.Body %} +{% endfunc %} + +{% func (p *HelloPage) Script() %} +{% endfunc %} |