From 72c53650ad4a708493880daa75cdda9d056fc75e Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 9 May 2007 00:48:09 +0000 Subject: * Add the needsbuild hook. Plugins can use this to manipulate which files ikiwiki builds when refreshing the wiki. --- doc/plugins/write.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/plugins') diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 8b0cdfdaa..9d85d4a9f 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -62,6 +62,15 @@ configuration. It's called early in the startup process. The function is passed no values. It's ok for the function to call `error()` if something isn't configured right. +### needsbuild + + hook(type => "needsbuild", id => "foo", call => \&needsbuild); + +This allows a plugin the manipulate the list of files that need to be +built when the wiki is refreshed. The function is passed a reference to an +array of pages that will be rebuilt, and can modify the array, either +adding or removing files from it. + ### filter hook(type => "filter", id => "foo", call => \&filter); -- cgit v1.2.3