forgejo-federation/modules/web
wxiaoguang 65248945c9
Refactor locale&string&template related code (#29165)
Clarify when "string" should be used (and be escaped), and when
"template.HTML" should be used (no need to escape)

And help PRs like  #29059 , to render the error messages correctly.

(cherry picked from commit f3eb835886031df7a562abc123c3f6011c81eca8)

Conflicts:
	modules/web/middleware/binding.go
	routers/web/feed/convert.go
	tests/integration/branches_test.go
	tests/integration/repo_branch_test.go
	trivial context conflicts
2024-02-16 15:20:52 +01:00
..
middleware Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
routing Update tool dependencies (#26607) 2023-08-20 22:59:19 +00:00
types Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
handler.go [GITEA] Use maintained gziphandler 2024-02-05 16:09:40 +01:00
route.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
route_test.go Refactor web route (#24080) 2023-04-20 14:49:06 -04:00
routemock.go Make route middleware/handler mockable (#25766) 2023-07-09 12:25:53 +00:00
routemock_test.go Make route middleware/handler mockable (#25766) 2023-07-09 12:25:53 +00:00