diff --git a/render_templates.md b/render_templates.md index 9425be6..5e77283 100644 --- a/render_templates.md +++ b/render_templates.md @@ -57,12 +57,12 @@ templateConfig := config.Template { iris.Config().Render.Template = templateConfig // 2. Fast way - Pongo snippet -iris.Config().Render.Template.Engine = iris.PongoEngine +iris.Config().Render.Template.Engine = config.PongoEngine // or simple iris.PongoEngine iris.Config().Render.Template.Directory = "mytemplates" iris.Config().Render.Template.Pongo.Filters = ... // 3. Fast way - HTMLTemplate snippet -iris.Config().Render.Template.Engine = iris.HTMLTemplate // or iris.DefaultEngine +iris.Config().Render.Template.Engine = config.HTMLTemplate // or iris.DefaultEngine iris.Config().Render.Template.Layout = "layout/layout.html" // = ./templates/layout/layout.html //... @@ -175,12 +175,11 @@ package main import ( "github.com/kataras/iris" - "github.com/kataras/iris/config" ) func main() { - iris.Config().Render.Template.Engine = config.PongoEngine + iris.Config().Render.Template.Engine = iris.PongoEngine iris.Get("/", func(ctx *iris.Context) {