From 50fdd9cb5ff1a5a9bf545cd71ce85f8dda076b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20P=C3=A9rez?= Date: Thu, 4 Dec 2025 15:59:20 +0100 Subject: [PATCH] add content type and text/html utf8 consts --- hrender.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hrender.go b/hrender.go index 01ecc9d..f575b01 100644 --- a/hrender.go +++ b/hrender.go @@ -24,6 +24,11 @@ type ( } ) +const ( + ContentType string = "Content-Type" + ContentTextHTMLUTF8 string = "text/html; charset=utf-8" +) + // NewHTMLRender initializes a new Render instance. // 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.