mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
Fix missing view from intermediate/e-mail example.
Former-commit-id: 505b5f7c6e0f2e7cf5af973be779c85d2f1a9c63
This commit is contained in:
parent
2d6cf9458c
commit
9f4cea1e52
|
@ -5,6 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/kataras/go-mailer"
|
"github.com/kataras/go-mailer"
|
||||||
"gopkg.in/kataras/iris.v6"
|
"gopkg.in/kataras/iris.v6"
|
||||||
|
"gopkg.in/kataras/iris.v6/adaptors/view"
|
||||||
"gopkg.in/kataras/iris.v6/adaptors/httprouter"
|
"gopkg.in/kataras/iris.v6/adaptors/httprouter"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,6 +16,8 @@ func main() {
|
||||||
app.Adapt(iris.DevLogger())
|
app.Adapt(iris.DevLogger())
|
||||||
// set the router, you can choose gorillamux too
|
// set the router, you can choose gorillamux too
|
||||||
app.Adapt(httprouter.New())
|
app.Adapt(httprouter.New())
|
||||||
|
// set a root for our templates
|
||||||
|
app.Adapt(view.HTML("./templates", ".html"))
|
||||||
|
|
||||||
// change these to your own settings
|
// change these to your own settings
|
||||||
cfg := mailer.Config{
|
cfg := mailer.Config{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user