Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration

This commit is contained in:
dpurbosakti
2025-12-09 12:47:44 +07:00
44 changed files with 2462 additions and 256 deletions
+3
View File
@@ -33,6 +33,9 @@ func (r *RequestPdf) ParseTemplate(templatePath string, data interface{}) error
"nl2br": func(text string) template.HTML {
return template.HTML(strings.Replace(template.HTMLEscapeString(text), "\n", "<br>", -1))
},
"safeHTML": func(text string) template.HTML {
return template.HTML(text)
},
}
t, err := template.New(fileName).Funcs(funcs).ParseFiles(templatePath)
if err != nil {