diff options
Diffstat (limited to 'template/engine.go')
-rw-r--r-- | template/engine.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/template/engine.go b/template/engine.go index e4cdc96..c7f7566 100644 --- a/template/engine.go +++ b/template/engine.go @@ -9,7 +9,6 @@ import ( "html/template" "time" - "miniflux.app/config" "miniflux.app/errors" "miniflux.app/locale" "miniflux.app/logger" @@ -78,10 +77,10 @@ func (e *Engine) Render(name, language string, data interface{}) []byte { } // NewEngine returns a new template engine. -func NewEngine(cfg *config.Config, router *mux.Router) *Engine { +func NewEngine(router *mux.Router) *Engine { tpl := &Engine{ templates: make(map[string]*template.Template), - funcMap: newFuncMap(cfg, router), + funcMap: &funcMap{router}, } tpl.parseAll() |