forgejo-federation/routers/api/v1/misc
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.
2023-04-30 08:22:23 -04:00
..
gitignore.go Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
licenses.go Add API for License templates (#23009) 2023-04-26 02:08:28 -04:00
markup.go Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
markup_test.go Use globally shared HTMLRender (#24436) 2023-04-30 08:22:23 -04:00
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
signing.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
version.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00