Added a rescan hook.
authorintrigeri <intrigeri@boum.org>
Fri, 30 Jul 2010 14:05:07 +0000 (16:05 +0200)
committerintrigeri <intrigeri@boum.org>
Fri, 30 Jul 2010 14:14:23 +0000 (16:14 +0200)
commit25447bccae0439ea56da7a788482a4807c7c459d
tree21d63415d77cc97890a493b035a083970fb09b84
parent1fe87a0808ee4d19d97956d48447644c69334f8a
Added a rescan hook.

This is needed for the po plugin vs. e.g. meta titles.

In order to get rid of the ugly "rebuilding all pages to fix meta titles" thing,
Joey suggested to make "po, at scan time, re-run the scan hooks, passing them
modified content (either converted from po to mdwn or with the escaped stuff
cheaply de-escaped)". This would unfortunately not work, as the meta plugin
gathers its data using the preprocess hook in scan mode: it would overwrite with
buggy data the correct data we would have forced it to gather in po's scan hook.

We then need a hook that runs *after* the preprocess hook has been run in scan
mode, but *before* any page rendering is started. Hence this one.
IkiWiki/Plugin/skeleton.pm.example
IkiWiki/Render.pm
doc/plugins/write.mdwn