]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/plugin_dependency_calulation.mdwn
Linkify URLs.
[ikiwiki.git] / doc / todo / plugin_dependency_calulation.mdwn
1 A few plugins need more complex dependency calculations than ikiwiki can do
2 on its own:
3
4 * Use of a version plugin should only make the page rebuild when it's built
5   with a new version of ikiwiki.
6 * Some plugin might want to _always_ rebuild the page that uses it.
7 * If backlinks were turned into a plugin, it would need to make a page
8   rebuild when its backlinks changed.
9
10 These suggest there should be a way for plugins to have hooks that tweak
11 the list of pages to rebuild.
12
13 Which in turn suggests that there should *be* a list of pages to rebuild;
14 currently there's not, and the best such an interface could do would be to
15 rebuild the pages even if they were already going to be rebuilt for some
16 other reason. (See [[optimisations]].)
17
18 It also suggests that plugins will want to examine pages and/or
19 [[store_data|plugin_data_storage]] about them to use in the dependency
20 calculations. For example, the version plugin would need to store info
21 about what pages use it.
22
23 > I [[fixed|done]] this without realizing it when I added the needsbuild hook!
24 > --[[Joey]]