diff options
Diffstat (limited to 'echo/echo_default.go')
-rw-r--r-- | echo/echo_default.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/echo/echo_default.go b/echo/echo_default.go index 92a5cfd..569d686 100644 --- a/echo/echo_default.go +++ b/echo/echo_default.go | |||
@@ -173,6 +173,8 @@ func NewDefaultEchoWithConfig(c EchoConfig) (*EchoWrapper, error) { | |||
173 | 173 | ||
174 | // Only install template handlers if the path and glob are set | 174 | // Only install template handlers if the path and glob are set |
175 | if templates != nil && c.TemplateGlob != nil { | 175 | if templates != nil && c.TemplateGlob != nil { |
176 | // TODO: Should assert the presence of required templates: 404.tpl | ||
177 | // 40x.tpl 50x.tpl header.tpl footer.tpl | ||
176 | e.HTTPErrorHandler = ErrorHandler(templates, c.TemplateFunctions) | 178 | e.HTTPErrorHandler = ErrorHandler(templates, c.TemplateFunctions) |
177 | 179 | ||
178 | tr, err := NewTemplateRenderer(templates, *c.TemplateGlob, c.TemplateFunctions) | 180 | tr, err := NewTemplateRenderer(templates, *c.TemplateGlob, c.TemplateFunctions) |