Commit graph

9 commits

Author SHA1 Message Date
Simon Ser
020e27fe45
Add Context to Plugin.Inject
This allows to access the request metadata and the session from injectors.
2019-12-17 15:14:36 +01:00
Simon Ser
ca3672df2a
Add RenderData interface
This allows Go plugins to easily inject global data.
2019-12-17 15:01:15 +01:00
Simon Ser
733304c88f
Allow Lua plugins to inject all templates 2019-12-17 13:15:10 +01:00
Simon Ser
7f48702b83
go fmt 2019-12-16 14:53:56 +01:00
Simon Ser
d897eeee5c
Introduce base plugin
This plugin offers base IMAP/SMTP functionality.

References: https://todo.sr.ht/~sircmpwn/koushin/39
2019-12-16 12:52:44 +01:00
Simon Ser
1b5bc568fb
Allow plugins to provide their own templates 2019-12-11 15:08:31 +01:00
Simon Ser
835e9e5033
go fmt 2019-12-10 17:39:42 +01:00
Simon Ser
4a504b0fc6
Rename Plugin.Render to Plugin.Inject
This function doesn't render anything, it just adds extra data to the
template data.
2019-12-10 16:07:02 +01:00
Simon Ser
95da47f7c4
Extract Lua plugin logic into separate file 2019-12-10 16:02:21 +01:00