mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
fix #1588
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<div style="background-color: black; color: red">
|
||||
<h1>Oups, you've got an error!</h1>
|
||||
{{ if .ErrorCode }}
|
||||
{{ $tmplName := print "partials/" .ErrorCode ".html"}}
|
||||
{{ render $tmplName }}
|
||||
{{ else }}
|
||||
{{ render "partials/500.html" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div style="background-color: black; color: blue">
|
||||
Index Page
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Website Layout</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>This is the global layout</h1>
|
||||
<br />
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Test Subdomain</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div style="background-color: white; color: red">
|
||||
<h1>Not Found</h1>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div style="background-color: white; color: red">
|
||||
<h1>Internal Server Error</h1>
|
||||
</div>
|
||||
Reference in New Issue
Block a user