aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-03-19 14:52:17 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-03-19 14:52:17 -0400
commitb1dade8d960ce7ccb549e5652d35a8e9dbccf5c6 (patch)
tree75852fed4ddd9f046eaedea7552d03342128b847 /IkiWiki.pm
parent6dc6fe2f9bc6bcd532291c703a637d24dfe58956 (diff)
downloadikiwiki-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.pm7
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,