mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 13:35:59 +00:00
Nothing in codebase, just some MVC examples enhancements
Former-commit-id: 81f1121da0e7632ef3a0f7b78d6784ee1690eb7e
This commit is contained in:
@@ -59,7 +59,7 @@ var (
|
||||
// a new Controller type.
|
||||
// Controller looks the whole flow as one handler, so `ctx.Next`
|
||||
// inside `BeginRequest` is not be respected.
|
||||
// Alternative way to check if a middleware was procceed succesfully
|
||||
// Alternative way to check if a middleware was procceed successfully
|
||||
// and called its `ctx.Next` is the `ctx.Proceed(handler) bool`.
|
||||
// You have to navigate to the `context/context#Proceed` function's documentation.
|
||||
type BaseController interface {
|
||||
|
||||
@@ -171,7 +171,7 @@ func DispatchFuncResult(ctx context.Context, values []reflect.Value) {
|
||||
found = b
|
||||
if !found {
|
||||
// skip everything, we don't care about other return values,
|
||||
// this boolean is the heighest in order.
|
||||
// this boolean is the higher in order.
|
||||
break
|
||||
}
|
||||
continue
|
||||
|
||||
@@ -37,7 +37,7 @@ var DefaultViewExt = ".html"
|
||||
|
||||
func ensureExt(s string) string {
|
||||
if len(s) == 0 {
|
||||
return "index.html"
|
||||
return "index" + DefaultViewExt
|
||||
}
|
||||
|
||||
if strings.IndexByte(s, dotB) < 1 {
|
||||
|
||||
Reference in New Issue
Block a user