1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

Update vendor for Pug (Jade) Parser and add Iris + Pug examples in the _examples/view folder, relative to https://github.com/kataras/iris/issues/1003

Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
This commit is contained in:
Gerasimos Maropoulos
2018-05-26 22:49:48 +03:00
parent 94b93484b5
commit beef97fd5d
14 changed files with 206 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
package main
import "github.com/kataras/iris"
func main() {
app := iris.New()
tmpl := iris.Pug("./templates", ".pug")
app.RegisterView(tmpl)
app.Get("/", index)
// http://localhost:8080
app.Run(iris.Addr(":8080"))
}
func index(ctx iris.Context) {
ctx.View("index.pug")
}