From 800a83059d95abb56cdd28049aeeaeb1f16699da Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 Dec 2019 17:55:52 +0100 Subject: [PATCH] readme: sync with new Lua API --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82cb933..7aa62f4 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,11 @@ HTTP server at `themes//assets/*`. 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. +API: + +* `koushin.on_render(name, f)`: prior to rendering the template `name`, call + `f` with the template data +* `koushin.set_filter(name, f)`: set a template function ## License