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.
12 package IkiWiki::Setup::Standard;
15 IkiWiki::setup_standard(@_);
23 if (! $config{refresh}) {
24 debug("generating wrappers..");
25 my %startconfig=(%config);
26 foreach my $wrapper (@{$setup{wrappers}}) {
27 %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
31 %config=(%startconfig);
33 foreach my $c (keys %setup) {
34 $config{$c}=possibly_foolish_untaint($setup{$c})
35 if defined $setup{$c} && ! ref $setup{$c};
37 if (! $config{refresh}) {
39 debug("rebuilding wiki..");
42 debug("refreshing wiki..");