You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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)
1 year ago
..
eval Use a general Eval function for expressions in templates. (#23927) 1 year ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Implement FSFE REUSE for golang files (#21840) 2 years ago
dynamic.go Group template helper functions, remove `Printf`, improve template error messages (#23982) 1 year ago
helper.go Group template helper functions, remove `Printf`, improve template error messages (#23982) 1 year ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Make bindata static build parse builtin templates correctly (#24003) 1 year ago
mailer.go Group template helper functions, remove `Printf`, improve template error messages (#23982) 1 year ago
static.go Implement FSFE REUSE for golang files (#21840) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago
util_test.go Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago