package main import "github.com/kataras/iris/v12" func main() { app := iris.New() // Read about its syntax at: https://github.com/kataras/blocks app.RegisterView(iris.Blocks("./views", ".html").Reload(true)) app.Get("/", index) app.Get("/500", internalServerError) app.Listen(":8080") } func index(ctx iris.Context) { data := iris.Map{ "Title": "Page Title", } ctx.ViewLayout("main") if err := ctx.View("index", data); err != nil { ctx.HTML("