Releases: atfromhome/goreus
Releases · atfromhome/goreus
v1.2.0
Changelog
[v1.2.0] - 2026-01-23
Added
- Global Components: New
GlobalComponentsfield inConfigto pre-load shared components (e.g., "components/*.html"). - Glob Support:
LoadHTMLandLoadPlaintextnow support glob patterns (e.g., "widgets/*.html"). - XSS Protection: HTML templates now use
html/templateinstead oftext/templatefor context-aware escaping. - DebugPrint: New method
DebugPrint(tmpl)to list defined templates for debugging. - Consistent Naming: Templates are now named using their relative paths to avoid collisions.
Changed
- Breaking Change:
LoadHTMLnow returns*html/template.Templateinstead of*text/template.Template. - Breaking Change:
RenderHTMLnow accepts*html/template.Template. Rendermethod signature updated to acceptTemplateExecutorinterface to support both HTML and text templates.
Migration Guide
Most code using type inference (:=) will continue to work without changes.
If you use explicit types:
Before:
import "text/template"
var tmpl *template.Template
tmpl, _ = mgr.LoadHTML("page.html")After:
import (
"html/template"
// "text/template" // still needed for LoadPlaintext
)
var tmpl *template.Template
tmpl, _ = mgr.LoadHTML("page.html")v1.1.0
Full Changelog: v1.0.0...v1.1.0
v1.0.0
init: project setup, MIT license, CI workflow, dotfiles, README (ID),…