File: errorpage.qtpl

package info (click to toggle)
golang-github-valyala-quicktemplate 1.6.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 472 kB
  • sloc: makefile: 15; xml: 15
file content (20 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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() %}
	<h1>Error page</h1>
	</div>
		Unsupported path <b>{%z p.Path %}</b>.
	</div>
	Base page body: {%= p.BasePage.Body() %}
{% endfunc %}