X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fd8463c878d1fb9920ef6f10944f8522e7a48f69..e855e30d01796253a77da4531fcd1f896d9f117a:/doc/plugins/write.mdwn diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 5bc3ad7ce..4dd057074 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -80,7 +80,7 @@ make arbitrary changes. The function is passed named parameters `page` and This is identical to a preprocess hook (see below), except that it is called in the initial pass that scans pages for data that will be used in -later passes. Scan hooks are the only hook that should modify +later passes. Scan hooks are the only hook that should modify `%links`. ### preprocess @@ -264,11 +264,11 @@ hash. The best way to understand the contents of the hash is to look at If your plugin needs to access data about other pages in the wiki. It can use the following hashes, using a page name as the key: -* `%links` lists the names of each page that a page links to, in an array +* `links` lists the names of each page that a page links to, in an array reference. -* `%renderedfiles` lists names of the files rendered by a page, in an array - reference. -* `%pagesources` contains the name of the source file for a page. +* `%destsources` contains the name of the source file used to create each + destination file. +* `%pagesources` contains the name of the source file for each page. Also, the %IkiWiki::version variable contains the version number for the ikiwiki program.