diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-19 14:52:17 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-19 14:52:17 -0400 |
commit | b1dade8d960ce7ccb549e5652d35a8e9dbccf5c6 (patch) | |
tree | 75852fed4ddd9f046eaedea7552d03342128b847 /IkiWiki.pm | |
parent | 6dc6fe2f9bc6bcd532291c703a637d24dfe58956 (diff) | |
download | ikiwiki-b1dade8d960ce7ccb549e5652d35a8e9dbccf5c6.tar ikiwiki-b1dade8d960ce7ccb549e5652d35a8e9dbccf5c6.tar.gz |
allow multiple setup file types, and support safe parsing
Finally removed the last hardcoding of IkiWiki::Setup::Standard.
Take the first "IkiWiki::Setup::*" in the setup file to define the
setuptype, and remember that type to use in dumping later. (But it can be
overridden using --set, etc.)
Also, support setup file types that are not evaled.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 6e333504e..241fb45b7 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -467,6 +467,13 @@ sub getsetup () { safe => 0, rebuild => 0, }, + setuptype => { + type => "internal", + default => "IkiWiki::Setup::Standard", + description => "perl class to use to dump setup file", + safe => 0, + rebuild => 0, + }, allow_symlinks_before_srcdir => { type => "boolean", default => 0, |