http5/templates/error.qtpl
2023-06-29 04:37:15 -07:00

22 lines
389 B
Plaintext

// Error page template. Implements BasePage methods.
{% code
type ErrorPage struct {
// inherit from base page, so its' title is used in error page.
BasePage
// error path
Path []byte
}
%}
{% func (p *ErrorPage) Body() %}
{%= p.BasePage.Header() %}
<h1>Error page</h1>
</div>
Unsupported path <b>{%z p.Path %}</b>.
</div>
{%= p.BasePage.Footer(p.Status) %}
{% endfunc %}