1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 20:07:04 +00:00

minor: examples

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-30 15:26:50 +03:00
parent a3279b8fa9
commit 600eb645df
6 changed files with 125 additions and 31 deletions

View File

@@ -33,16 +33,3 @@ func hi(ctx iris.Context) {
// ctx.ViewData("", myCcustomStruct{})
ctx.View("hi.html")
}
/*
Note:
In case you're wondering, the code behind the view engines derives from the "github.com/kataras/iris/v12/view" package,
access to the engines' variables can be granded by "github.com/kataras/iris/v12" package too.
iris.HTML(...) is a shortcut of view.HTML(...)
iris.Django(...) >> >> view.Django(...)
iris.Pug(...) >> >> view.Pug(...)
iris.Handlebars(...) >> >> view.Handlebars(...)
iris.Amber(...) >> >> view.Amber(...)
*/