mirror of
https://github.com/kataras/iris.git
synced 2026-01-03 10:17:03 +00:00
Update to version 8.5.5
Former-commit-id: b5be58709f17758a8df3ebc99270b97ccd8b18f2
This commit is contained in:
@@ -91,6 +91,13 @@ const (
|
||||
Favicon = "favicon.ico"
|
||||
)
|
||||
|
||||
// Configure accepts configurations and runs them inside the Bootstraper's context.
|
||||
func (b *Bootstrapper) Configure(cs ...Configurator) {
|
||||
for _, c := range cs {
|
||||
c(b)
|
||||
}
|
||||
}
|
||||
|
||||
// Bootstrap prepares our application.
|
||||
//
|
||||
// Returns itself.
|
||||
|
||||
@@ -6,15 +6,9 @@ import (
|
||||
"github.com/kataras/iris/_examples/structuring/bootstrap/routes"
|
||||
)
|
||||
|
||||
var app = bootstrap.New("Awesome App", "kataras2006@hotmail.com",
|
||||
identity.Configure,
|
||||
routes.Configure,
|
||||
)
|
||||
|
||||
func init() {
|
||||
app.Bootstrap()
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := bootstrap.New("Awesome App", "kataras2006@hotmail.com")
|
||||
app.Bootstrap()
|
||||
app.Configure(identity.Configure, routes.Configure)
|
||||
app.Listen(":8080")
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
<h3>{{.Err.status}}</h3>
|
||||
<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>
|
||||
@@ -1,23 +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>
|
||||
|
||||
<!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