mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
gofmted -s
This commit is contained in:
parent
78d145c207
commit
ee9b153f6d
2
iris.go
2
iris.go
|
@ -1947,7 +1947,7 @@ func (api *muxAPI) StaticEmbedded(requestPath string, vdir string, assetFn func(
|
||||||
}
|
}
|
||||||
if len(names) == 0 {
|
if len(names) == 0 {
|
||||||
// we don't start the server yet, so:
|
// we don't start the server yet, so:
|
||||||
panic("iris.StaticEmbedded: Unable to locate any embedded files located to the (virutal) directory: " + vdir)
|
panic("iris.StaticEmbedded: Unable to locate any embedded files located to the (virtual) directory: " + vdir)
|
||||||
}
|
}
|
||||||
|
|
||||||
modtime := time.Now()
|
modtime := time.Now()
|
||||||
|
|
|
@ -23,9 +23,9 @@ var (
|
||||||
// the available projects/examples to build & run using this command line tool
|
// the available projects/examples to build & run using this command line tool
|
||||||
projects = map[string]project{
|
projects = map[string]project{
|
||||||
// the project type, passed on the get command : project.gopath & project.mainfile
|
// the project type, passed on the get command : project.gopath & project.mainfile
|
||||||
"basic": project{remote: toslash(commonRepo, "basic", "backend")},
|
"basic": {remote: toslash(commonRepo, "basic", "backend")},
|
||||||
"static": project{remote: toslash(commonRepo, "static", "backend")},
|
"static": {remote: toslash(commonRepo, "static", "backend")},
|
||||||
"mongo": project{remote: toslash(commonRepo, "mongo", "backend")},
|
"mongo": {remote: toslash(commonRepo, "mongo", "backend")},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ func (t *templateEngines) render(isFile bool, ctx *Context, filenameOrSource str
|
||||||
if len(options) > 0 {
|
if len(options) > 0 {
|
||||||
options[0]["layout"] = ctxLayout
|
options[0]["layout"] = ctxLayout
|
||||||
} else {
|
} else {
|
||||||
options = []map[string]interface{}{map[string]interface{}{"layout": ctxLayout}}
|
options = []map[string]interface{}{{"layout": ctxLayout}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user