(ctx iris.Context)
| 31 | } |
| 32 | |
| 33 | func index(ctx iris.Context) { |
| 34 | if err := ctx.View("program.html", iris.Map{ |
| 35 | "Name": "Gerasimos", |
| 36 | }); err != nil { |
| 37 | ctx.HTML("<h3>%s</h3>", err.Error()) |
| 38 | return |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func layout(ctx iris.Context) { |
| 43 | ctx.ViewLayout("layouts/main.html") |