mirror of
https://github.com/kataras/iris.git
synced 2025-12-27 14:57:05 +00:00
fix https://github.com/kataras/iris/issues/1450 and continue on implementing 1449
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
This commit is contained in:
@@ -2,10 +2,13 @@ package main
|
||||
|
||||
import "github.com/kataras/iris/v12"
|
||||
|
||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
||||
// $ go-bindata ./templates/...
|
||||
// $ go build
|
||||
func main() {
|
||||
app := iris.New()
|
||||
|
||||
tmpl := iris.Pug("./templates", ".pug")
|
||||
tmpl := iris.Pug("./templates", ".pug").Binary(Asset, AssetNames)
|
||||
|
||||
app.RegisterView(tmpl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user