mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
New: i18n pluralization and variables support and more...
fixes: #1649, #1648, #1641, #1650 relative to: #1597
This commit is contained in:
@@ -12,14 +12,14 @@ func main() {
|
||||
app.RegisterView(tmpl)
|
||||
|
||||
app.Get("/", func(ctx iris.Context) {
|
||||
ctx.View("index.ace", iris.Map{
|
||||
ctx.View("index", iris.Map{
|
||||
"Title": "Title of The Page",
|
||||
})
|
||||
})
|
||||
|
||||
app.Get("/layout", func(ctx iris.Context) {
|
||||
ctx.ViewLayout("layouts/main.ace") // layout for that response.
|
||||
ctx.View("index.ace", iris.Map{
|
||||
ctx.ViewLayout("layouts/main") // layout for that response.
|
||||
ctx.View("index", iris.Map{ // file extension is optional.
|
||||
"Title": "Title of the main Page",
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user