iris/_examples/view/template_blocks_0/views/500.html
Gerasimos (Makis) Maropoulos b363492cca
add 'iris.Blocks' template engine
read more about its features at: https://github.com/kataras/blocks
2020-08-05 06:46:45 +03:00

12 lines
415 B
HTML

<!-- You can define more than one block.
The default one is "content" which should be the main template's body.
So, even if it's missing (see index.html), it's added automatically by the view engine.
When you need to define more than one block, you have to be more specific:
-->
{{ define "content" }}
<h1>Internal Server Error</h1>
{{ end }}
{{ define "message" }}
<p style="color:red;">{{.Message}}</p>
{{ end }}