From 733304c88f51df710174fd74c86c24c79fcf5b47 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Dec 2019 13:15:10 +0100 Subject: Allow Lua plugins to inject all templates --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e5fb1d5..847298b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The entry point is at `plugins//main.lua`. API: * `koushin.on_render(name, f)`: prior to rendering the template `name`, call - `f` with the template data + `f` with the template data (the special name `*` matches all templates) * `koushin.set_filter(name, f)`: set a template function * `koushin.set_route(method, path, f)`: register a new HTTP route, `f` will be called with the HTTP context -- cgit v1.2.3-59-g8ed1b