From 9f4cea1e52b166c63a935afda8473be7c628670a Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Mon, 8 May 2017 18:01:42 +0300 Subject: [PATCH] Fix missing view from intermediate/e-mail example. Former-commit-id: 505b5f7c6e0f2e7cf5af973be779c85d2f1a9c63 --- _examples/intermediate/e-mail/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_examples/intermediate/e-mail/main.go b/_examples/intermediate/e-mail/main.go index eec2bdd2..f17cf0fa 100644 --- a/_examples/intermediate/e-mail/main.go +++ b/_examples/intermediate/e-mail/main.go @@ -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{