1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

update Blocks module

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-09-24 17:35:49 +03:00
parent e0ac28c1bb
commit e7b40398aa
16 changed files with 198 additions and 105 deletions

View File

@@ -1,8 +1,3 @@
<!-- 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 }}

View File

@@ -6,8 +6,8 @@
<title>{{.Code}}</title>
</head>
<body>
{{ template "content" .}}
{{ template "content" . }}
{{block "message" .}}{{end}}
{{ block "message" . }}Default Error Message{{ end }}
</body>
</html>