aboutsummaryrefslogtreecommitdiff
path: root/templates/helloworld.qtpl
blob: 66287eac78fadb51d34da5420d2700ff4b4bb511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 %}