add content type and text/html utf8 consts

This commit is contained in:
Pedro Pérez 2025-12-04 15:59:20 +01:00
parent 5eb5dc8eaf
commit 50fdd9cb5f

View File

@ -24,6 +24,11 @@ type (
} }
) )
const (
ContentType string = "Content-Type"
ContentTextHTMLUTF8 string = "text/html; charset=utf-8"
)
// NewHTMLRender initializes a new Render instance. // NewHTMLRender initializes a new Render instance.
// fileSystem: The file system containing the templates (usually embed.FS or os.DirFS). // fileSystem: The file system containing the templates (usually embed.FS or os.DirFS).
// enableCache: If true, templates will be compiled once and cached for future use. // enableCache: If true, templates will be compiled once and cached for future use.