26 lines
526 B
Plaintext
26 lines
526 B
Plaintext
{% code
|
|
type Error500Page struct {
|
|
Message string
|
|
Error string
|
|
}
|
|
%}
|
|
|
|
{% func (p *Error500Page ) Title() %}
|
|
500
|
|
{% endfunc %}
|
|
|
|
{% func (p *Error500Page ) Stylesheets() %}
|
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
|
|
{% endfunc %}
|
|
|
|
{% func (p *Error500Page ) Scripts() %}
|
|
{% endfunc %}
|
|
|
|
{% func (p *Error500Page ) Body() %}
|
|
<div class="container">
|
|
<h1>Error: 500</h1>
|
|
<p>{%s p.Message %}</p>
|
|
<p>{%s p.Error %}</p>
|
|
</div>
|
|
{% endfunc %}
|