2 # Standard ikiwiki setup module.
3 # Parameters to import should be all the standard ikiwiki config stuff,
4 # plus hashes for cgiwrapper and svnwrapper, which specify any differing
5 # config stuff for them and cause the wrappers to be made.
11 package IkiWiki::Setup::Standard;
14 IkiWiki::setup_standard(@_);
22 debug("generating wrappers..");
23 my %startconfig=(%config);
24 foreach my $wrapper (@{$setup{wrappers}}) {
25 %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
29 %config=(%startconfig);
31 debug("rebuilding wiki..");
32 foreach my $c (keys %setup) {
33 $config{$c}=possibly_foolish_untaint($setup{$c})
34 if defined $setup{$c} && ! ref $setup{$c};