diff options
author | 2019-12-09 17:55:52 +0100 | |
---|---|---|
committer | 2019-12-09 17:55:52 +0100 | |
commit | 800a83059d95abb56cdd28049aeeaeb1f16699da (patch) | |
tree | b899a3e8ade8b9be7663fc18d0fa595ff8150737 /README.md | |
parent | 76599232dc8f652e04dfc62258c8707c00f8b7fc (diff) | |
download | alps-800a83059d95abb56cdd28049aeeaeb1f16699da.tar.gz alps-800a83059d95abb56cdd28049aeeaeb1f16699da.tar.bz2 alps-800a83059d95abb56cdd28049aeeaeb1f16699da.zip |
readme: sync with new Lua API
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -18,8 +18,11 @@ HTTP server at `themes/<name>/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 |