refactor: remove templates/ prefix from template error file names

Clean up generated template code to use simpler file paths in error messages by removing the redundant templates/ directory prefix.
This commit is contained in:
2026-02-02 21:18:56 -05:00
parent 121b955334
commit ed0a41e2d1
13 changed files with 68 additions and 68 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ func BookShelf(user User, libraries []LibraryData) templ.Component {
var templ_7745c5c3_Var2 string
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(lib.ID)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/bookshelf.templ`, Line: 29, Col: 58}
return templ.Error{Err: templ_7745c5c3_Err, FileName: `bookshelf.templ`, Line: 29, Col: 58}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
if templ_7745c5c3_Err != nil {
@@ -68,7 +68,7 @@ func BookShelf(user User, libraries []LibraryData) templ.Component {
var templ_7745c5c3_Var3 string
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(lib.Name)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/bookshelf.templ`, Line: 29, Col: 71}
return templ.Error{Err: templ_7745c5c3_Err, FileName: `bookshelf.templ`, Line: 29, Col: 71}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
if templ_7745c5c3_Err != nil {