mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
b363492cca
read more about its features at: https://github.com/kataras/blocks
12 lines
415 B
HTML
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 }} |