hook(type => "filter", id => "foo", call => \&filter);
Runs on the raw source of a page, before anything else touches it, and can
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.
object that is the template that will be used to generate the page. The
function can manipulate that template object.
object that is the template that will be used to generate the page. The
function can manipulate that template object.
Hook into ikiwiki's processing. See the discussion of hooks above.
Note that in addition to the named parameters described above, a parameter
Hook into ikiwiki's processing. See the discussion of hooks above.
Note that in addition to the named parameters described above, a parameter
will not override any existing hook with the same id. This is useful if
the id can be controled by the user.
will not override any existing hook with the same id. This is useful if
the id can be controled by the user.
Creates and returns a [[cpan HTML::Template]] object. The first parameter
is the name of the file in the template directory. The optional remaining
Creates and returns a [[cpan HTML::Template]] object. The first parameter
is the name of the file in the template directory. The optional remaining
Given a page name and a destination file name (not including the base
destination directory), register that the page will result in that file
Given a page name and a destination file name (not including the base
destination directory), register that the page will result in that file