Fix missing view from intermediate/e-mail example.

Former-commit-id: 505b5f7c6e0f2e7cf5af973be779c85d2f1a9c63
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-05-08 18:01:42 +03:00 committed by GitHub
parent 2d6cf9458c
commit 9f4cea1e52

View File

@ -5,6 +5,7 @@ import (
"github.com/kataras/go-mailer"
"gopkg.in/kataras/iris.v6"
"gopkg.in/kataras/iris.v6/adaptors/view"
"gopkg.in/kataras/iris.v6/adaptors/httprouter"
)
@ -15,6 +16,8 @@ func main() {
app.Adapt(iris.DevLogger())
// set the router, you can choose gorillamux too
app.Adapt(httprouter.New())
// set a root for our templates
app.Adapt(view.HTML("./templates", ".html"))
// change these to your own settings
cfg := mailer.Config{