mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
builtin html template functions changes
This commit is contained in:
@@ -31,9 +31,12 @@ func main() {
|
||||
}
|
||||
|
||||
func index(ctx iris.Context) {
|
||||
ctx.View("program.html", iris.Map{
|
||||
if err := ctx.View("program.html", iris.Map{
|
||||
"Name": "Gerasimos",
|
||||
})
|
||||
}); err != nil {
|
||||
ctx.HTML("<h3>%s</h3>", err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func layout(ctx iris.Context) {
|
||||
|
||||
Reference in New Issue
Block a user