2 # Standard ikiwiki setup module.
3 # Parameters to import should be all the standard ikiwiki config stuff,
4 # plus an array of wrappers to set up.
11 package IkiWiki::Setup::Standard;
14 IkiWiki::setup_standard(@_);
22 if (! $config{refresh}) {
23 debug("generating wrappers..");
24 my @wrappers=@{$setup{wrappers}};
25 delete $setup{wrappers};
26 my %startconfig=(%config);
27 foreach my $wrapper (@wrappers) {
28 %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
32 %config=(%startconfig);
35 delete $setup{wrappers};
38 foreach my $c (keys %setup) {
39 if (defined $setup{$c}) {
40 if (! ref $setup{$c}) {
41 $config{$c}=possibly_foolish_untaint($setup{$c});
43 elsif (ref $setup{$c} eq 'ARRAY') {
44 $config{$c}=[map { possibly_foolish_untaint($_) } @{$setup{$c}}]
52 if (! $config{refresh}) {
54 debug("rebuilding wiki..");
57 debug("refreshing wiki..");