From ce86124b46ba5043608029840a466c280ade4032 Mon Sep 17 00:00:00 2001 From: "Nathan A. Ferch" Date: Tue, 4 Jan 2022 15:32:21 -0500 Subject: [PATCH] Revert "Fix template name in template.md" per https://pkg.go.dev/html/template#ParseGlob the template name is "the (base) name and (parsed) contents of the first file matched by the pattern", so `hello.html` was correct. This reverts commit cc451ec9493ad022972680151b2de137d98627ae. --- website/content/guide/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/guide/templates.md b/website/content/guide/templates.md index cdcdb49c..9cf7db00 100644 --- a/website/content/guide/templates.md +++ b/website/content/guide/templates.md @@ -51,7 +51,7 @@ Example below shows how to use Go `html/template`: ```go func Hello(c echo.Context) error { - return c.Render(http.StatusOK, "hello", "World") + return c.Render(http.StatusOK, "hello.html", "World") } ```