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:
@@ -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 }}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<title>{{.Code}}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "content" .}}
|
||||
{{ template "content" . }}
|
||||
|
||||
{{block "message" .}}{{end}}
|
||||
{{ block "message" . }}Default Error Message{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user