mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
beef97fd5d
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
21 lines
285 B
Go
21 lines
285 B
Go
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")
|
|
}
|