]> scripts.mit.edu Git - www/ikiwiki.git/blob - doc/plugins/write/discussion.mdwn
Thoughts on the new wikistate variable
[www/ikiwiki.git] / doc / plugins / write / discussion.mdwn
1 Maybe this is obvious, but the config variable lives in the IkiWiki module, and one probably 
2 wants to call defaultconfig for most applications. 
3 <pre>
4 %IkiWiki::config=IkiWiki::defaultconfig();
5 IkiWiki::Setup::load($config_file);
6 print  join(",",keys %IkiWiki::config);
7 </pre>
8
9 [[DavidBremner]]
10
11 I'm a little concerned about one aspect of the `%wikistate` variable that was just introduced.
12 I think global state for each plugin is a fine idea, but I worry about making it persist across
13 rebuilds.  (And by rebuild, I assume we're talking about the `--rebuild` option.)
14
15 My reasoning is that a 'rebuild' should be similar to checking out a new copy of the wiki
16 and building.  Another way of saying this is that all permanent state should be in the RCS.
17 It is great that there is temporary state stored in other places - I think of it as indexing
18 and caching.  I'm worried that with the persistence, plugin writers will start putting data
19 there that isn't backed by the RCS and that will break IkiWiki's great abilities as a
20 distributed wiki.
21
22 [[Will]]