X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2c0d0109d8593dc20c1493e492d15ed225fae563..31eab66e8a54637667745e5ad8c13381b4a05246:/doc/plugins/write.mdwn diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 8b0cdfdaa..6593ab018 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -62,13 +62,22 @@ 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); Runs on the raw source of a page, before anything else touches it, and can -make arbitrary changes. The function is passed named parameters `page` and -`content` and should return the filtered content. +make arbitrary changes. The function is passed named parameters "page", +"destpage", and "content". It should return the filtered content. ### preprocess