mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 21:07:03 +00:00
builtin html template functions changes
This commit is contained in:
@@ -28,7 +28,10 @@ func main() {
|
||||
}},
|
||||
}
|
||||
|
||||
ctx.View("example.html", viewData)
|
||||
if err := ctx.View("example.html", viewData); err != nil {
|
||||
ctx.HTML("<h3>%s</h3>", err.Error())
|
||||
return
|
||||
}
|
||||
})
|
||||
|
||||
exampleRouter := app.Party("/example")
|
||||
|
||||
Reference in New Issue
Block a user