From 4e82e0a66680775fb06adc1226882df8eb4ca971 Mon Sep 17 00:00:00 2001 From: TheJanzap Date: Sat, 10 Aug 2024 10:58:28 +0200 Subject: [PATCH] Update html-rendering.md Added paragraph about html/template and text/template --- content/en/docs/examples/html-rendering.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/en/docs/examples/html-rendering.md b/content/en/docs/examples/html-rendering.md index cfa8e825a..3bccf840a 100644 --- a/content/en/docs/examples/html-rendering.md +++ b/content/en/docs/examples/html-rendering.md @@ -3,7 +3,10 @@ title: "HTML rendering" draft: false --- -Using LoadHTMLGlob() or LoadHTMLFiles() +Gin uses the [html/template](https://pkg.go.dev/html/template) package for HTML rendering. +For more information about how to use them, including available placeholders, see the documentation for [text/template](https://pkg.go.dev/text/template) + +Use LoadHTMLGlob() or LoadHTMLFiles() to select the HTML files to load. ```go func main() {