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.
gitea/modules/templates
wxiaoguang e3750370df
Use globally shared HTMLRender (#24436)
The old `HTMLRender` is not ideal.

1. It shouldn't be initialized multiple times, it consumes a lot of
memory and is slow.
2. It shouldn't depend on short-lived requests, the `WatchLocalChanges`
needs a long-running context.
3. It doesn't make sense to use FuncsMap slice.


HTMLRender was designed to only work for GItea's specialized 400+
templates, so it's good to make it a global shared instance.
2 years ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
scopedtmpl Make HTML template functions support context (#24056) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Refactor `setting.Other` and remove unused `SHOW_FOOTER_BRANDING` (#24270) 2 years ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Use globally shared HTMLRender (#24436) 2 years ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Use globally shared HTMLRender (#24436) 2 years ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Use globally shared HTMLRender (#24436) 2 years ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util_avatar.go Improve template helper (#24417) 2 years ago
util_dict.go Update go tool dependencies, restructure lint targets (#24239) 2 years ago
util_json.go Improve template helper (#24417) 2 years ago
util_misc.go Improve template helper (#24417) 2 years ago
util_render.go Improve template helper (#24417) 2 years ago
util_slice.go Improve template helper functions: string/slice (#24266) 2 years ago
util_string.go Improve template helper (#24417) 2 years ago
util_test.go Improve template helper functions: string/slice (#24266) 2 years ago