From b891a95fcf4a3d4b64100911dae49fb28904a7fd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 13 May 2020 14:07:44 +0200 Subject: Rename project to alps --- docs/themes-and-plugins.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/themes-and-plugins.md') diff --git a/docs/themes-and-plugins.md b/docs/themes-and-plugins.md index 1d793f8..4c45ed7 100644 --- a/docs/themes-and-plugins.md +++ b/docs/themes-and-plugins.md @@ -17,7 +17,7 @@ Assets in `plugins//public/assets/*` are served by the HTTP server at ## Go plugins They can use the [Go plugin helpers] and need to be included at compile-time in -`cmd/koushin/main.go`. +`cmd/alps/main.go`. ## Lua plugins @@ -25,8 +25,8 @@ The entry point is at `plugins//main.lua`. API: -* `koushin.on_render(name, f)`: prior to rendering the template `name`, call +* `alps.on_render(name, f)`: prior to rendering the template `name`, call `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 +* `alps.set_filter(name, f)`: set a template function +* `alps.set_route(method, path, f)`: register a new HTTP route, `f` will be called with the HTTP context -- cgit v1.2.3-59-g8ed1b