From 1b5bc568fb638314b62ea3d6635de56109680da9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 11 Dec 2019 15:08:31 +0100 Subject: Allow plugins to provide their own templates --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index f9e8f58..74706d3 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ HTTP server at `themes//assets/*`. ## Plugins -Lua plugins are supported. They can be dropped in `plugins/*.lua`. +Lua plugins are supported. They can be dropped in `plugins//main.lua`. API: @@ -28,6 +28,8 @@ API: * `koushin.set_route(method, path, f)`: register a new HTTP route, `f` will be called with the HTTP context +Plugins can provide their own templates in `plugins//public/*.html`. + ## Contributing Send patches [on the mailing list](https://lists.sr.ht/~sircmpwn/koushin), -- cgit v1.2.3-59-g8ed1b