0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 03:55:19 +01:00
gitea/modules/templates
wxiaoguang 94fde46151
Make bindata static build parse builtin templates correctly (#24003)
Close #24002


Two problems before:

1. The `log.Fatal` is missing after these `wrapFatal` calls, so the
error is not shown to users.
2. `GetTemplateAssetNames` has different behaviors for local files and
builtin assets, for builtin assets, it also returns directories, so we
need to check the extension again.

I have tested with `TAGS="bindata sqlite sqlite_unlock_notify" make
build && ./gitea` , it works well now. Before, the server responds
internal server error (because it doesn't complete the template parsing)
2023-04-08 21:56:50 +08:00
..
eval
vars
base.go
dynamic.go
helper.go
helper_test.go
htmlrenderer.go
mailer.go
static.go
templates_bindata.go
util.go
util_test.go