{% code type ErrorPage struct { Err string } %} {% func (p *ErrorPage) Title() %}Error{% endfunc %} {% func (p *ErrorPage) Content() %} {%s p.Err %} {% endfunc %} {% func (p *ErrorPage) Script() %} {% endfunc %}