readme: sync with new Lua API
This commit is contained in:
parent
76599232dc
commit
800a83059d
1 changed files with 5 additions and 2 deletions
|
@ -18,8 +18,11 @@ HTTP server at `themes/<name>/assets/*`.
|
||||||
|
|
||||||
Lua plugins are supported. They can be dropped in `plugins/*.lua`.
|
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
|
API:
|
||||||
Lua function will be called prior to rendering a template.
|
|
||||||
|
* `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
|
## License
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue