Skip to content

[Proposal] Clean up and refactor the template helper functions #23328

Closed
@wxiaoguang

Description

@wxiaoguang

Feature Description

Gitea is heavily using Go HTML Template, so it's worth to make the template system more maintainable.

There are some strange smells in template/helper.go:

TODO:

  • Use "SettingUI": &setting.UI to expose all UI settings to templates

ps: only do big refactoring after 1.19.0 or even 1.19.1 gets released, to prevent from making backport difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.type/refactoringExisting code has been cleaned up. There should be no new functionality.type/summaryThis issue aggregates a bunch of other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions