diff --git a/content/en/docs/examples/html-rendering.md b/content/en/docs/examples/html-rendering.md index cfa8e825a..cc56d7471 100644 --- a/content/en/docs/examples/html-rendering.md +++ b/content/en/docs/examples/html-rendering.md @@ -49,6 +49,8 @@ func main() { } ``` +**Note:** Please wrap your HTML template in the `{{define }} {{end}}` block and define your template file with the relative path ``. Otherwise, GIN will not properly parse the template files. + templates/posts/index.tmpl ```html