mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Structuring examples - Pushed to iris-contrib/examples as well.
Former-commit-id: 24ee6ce233d83f0b394afc6c69b5a88243406045
This commit is contained in:
1
_examples/structuring/bootstrap/views/index.html
Normal file
1
_examples/structuring/bootstrap/views/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Welcome!!</h1>
|
||||
5
_examples/structuring/bootstrap/views/shared/error.html
Normal file
5
_examples/structuring/bootstrap/views/shared/error.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
<h3>{{.Err.status}}</h3>
|
||||
<h4>{{.Err.message}}</h4>
|
||||
23
_examples/structuring/bootstrap/views/shared/layout.html
Normal file
23
_examples/structuring/bootstrap/views/shared/layout.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<title>{{.Title}} - {{.AppName}}</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© 2017 - {{.AppOwner}}</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user