示例#1
0
文件: handlers.go 项目: cedmundo/site
// Configure setups routes and templates
func Configure(r *render.BufferedRender, e *echo.Echo) error {
	// Add templates
	err := r.Load("500", utils.TmplAbs("500.tmpl"), utils.TmplAbs("layouts", "black_base.tmpl"))
	if err != nil {
		return err
	}

	e.SetHTTPErrorHandler(HandleError)
	e.Get("/500", FailOnPropouse)

	// Add routes
	return nil
}