{% code type LoginPage struct { Username string Err string } %} {% func (p *LoginPage) Title() %}Login{% endfunc %} {% func (p *LoginPage) Content() %}
{% if p.Err != "" %}
{%s p.Err %}
{% endif %}
{% endfunc %} {% func (p *LoginPage) Script() %} {% endfunc %}