From 4f74722c14d18e78e172825961d7a65d25b41d3f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 Dec 2019 16:02:12 +0100 Subject: Add basic support for plugins --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 33288c8..82cb933 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,13 @@ Templates in `public/themes//*.html` override default templates in `public/*.html`. Assets in `public/themes//assets/*` are served by the HTTP server at `themes//assets/*`. +## Plugins + +Lua plugins are supported. They can be dropped in `plugins/*.lua`. + +For now only a single hook is supported: `render(name, data)`. If defined, this +Lua function will be called prior to rendering a template. + ## License MIT -- cgit v1.2.3