aboutsummaryrefslogtreecommitdiff
path: root/template.go
Commit message (Collapse)AuthorAgeFilesLines
* go fmtSimon Ser2019-12-101-6/+6
|
* Introduce GlobalRenderData and RenderDataSimon Ser2019-12-101-0/+32
| | | | | | | | GlobalRenderData contains some global metadata that can be obtained from any template. RenderData is a base type for template data. It contains a Global field with global metadata and an Extra field for plugins.
* Load all themes on startupSimon Ser2019-12-101-13/+54
| | | | This is the first step to allow each user to have a different theme.
* Rename Plugin.Render to Plugin.InjectSimon Ser2019-12-101-1/+1
| | | | | This function doesn't render anything, it just adds extra data to the template data.
* Add a Lua API to set template filtersSimon Ser2019-12-091-3/+8
|
* Add basic support for pluginsSimon Ser2019-12-091-1/+11
|
* Add basic theme supportSimon Ser2019-12-041-3/+20
| | | | References: https://todo.sr.ht/~sircmpwn/koushin/1
* Escape mailbox names in URLsSimon Ser2019-12-031-0/+4
| | | | Closes: https://todo.sr.ht/~sircmpwn/koushin/14
* Display & download any message partSimon Ser2019-12-031-1/+5
|
* Linkify mailbox listSimon Ser2019-12-021-3/+0
|
* Add HTTP server boilerplateSimon Ser2019-12-021-0/+24