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 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
3 months ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
scopedtmpl Replace `interface{}` with `any` (#25686) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 1 year ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Refactor sidebar assignee&milestone&project selectors (#32465) 3 months ago
helper_test.go Refactor names (#31405) 8 months ago
htmlrenderer.go Enable more `revive` linter rules (#30608) 9 months ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Refactor names (#31405) 8 months 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 Lazy load avatar images (#32051) 5 months ago
util_date.go Fix milestone deadline and date related problems (#32339) 3 months ago
util_date_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_date_test.go Refactor DateUtils and merge TimeSince (#32409) 3 months ago
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
util_json.go Improve template helper (#24417) 2 years ago
util_misc.go Refactor names (#31405) 8 months ago
util_render.go Refactor render system (#32492) 3 months ago
util_render_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_render_test.go Refactor render system (#32492) 3 months ago
util_slice.go Improve template helper functions: string/slice (#24266) 2 years ago
util_string.go Refactor some Str2html code (#29397) 11 months ago
util_test.go Improve template helper functions: string/slice (#24266) 2 years ago