mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
This commit is contained in:
@@ -29,7 +29,7 @@ func main() {
|
||||
})
|
||||
|
||||
app.Get("/", func(ctx iris.Context) {
|
||||
ctx.ViewData("BodyMessage", "a sample text here... setted by the route handler")
|
||||
ctx.ViewData("BodyMessage", "a sample text here... set by the route handler")
|
||||
if err := ctx.View("index.html"); err != nil {
|
||||
ctx.Application().Logger().Infof(err.Error())
|
||||
}
|
||||
@@ -37,7 +37,7 @@ func main() {
|
||||
|
||||
app.Get("/about", func(ctx iris.Context) {
|
||||
ctx.ViewData("Title", "My About Page")
|
||||
ctx.ViewData("BodyMessage", "about text here... setted by the route handler")
|
||||
ctx.ViewData("BodyMessage", "about text here... set by the route handler")
|
||||
|
||||
// same file, just to keep things simple.
|
||||
if err := ctx.View("index.html"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user