diff options
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 %} |