aboutsummaryrefslogtreecommitdiff
path: root/template.go
Commit message (Collapse)AuthorAgeFilesLines
* Introduce base pluginSimon Ser2019-12-161-14/+1
| | | | | | This plugin offers base IMAP/SMTP functionality. References: https://todo.sr.ht/~sircmpwn/koushin/39
* Add docsSimon Ser2019-12-111-1/+3
|
* Allow plugins to provide their own templatesSimon Ser2019-12-111-3/+6
|
* Export Server.{Sessions,Plugins}Simon Ser2019-12-111-1/+1
| | | | And unexport a few internal functions.
* Export ContextSimon Ser2019-12-111-6/+6
| | | | This allows plugins to access it.
* 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