Former-commit-id: 75992b3aeae2228a7a7f0e698ce78b2f323cc33a
This commit is contained in:
Gerasimos (Makis) Maropoulos 2019-01-20 00:00:54 +02:00
parent 3dc3fa10ee
commit d451335aa2
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ func main() {
// TIP: append .Reload(true) to reload the templates on each request. // TIP: append .Reload(true) to reload the templates on each request.
app.Get("/home", func(ctx iris.Context) { app.Get("/home", func(ctx iris.Context) {
ctx.ViewData("title", "Home page"); ctx.ViewData("title", "Home page")
ctx.View("home.html") ctx.View("home.html")
// Note that: you can pass "layout" : "otherLayout.html" to bypass the config's Layout property // Note that: you can pass "layout" : "otherLayout.html" to bypass the config's Layout property
// or view.NoLayout to disable layout on this render action. // or view.NoLayout to disable layout on this render action.