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 %startconfig=(%config);
25 foreach my $wrapper (@{$setup{wrappers}}) {
26 %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
30 %config=(%startconfig);
31 delete $config{wrappers};
33 foreach my $c (keys %setup) {
34 if (defined $setup{$c}) {
35 if (! ref $setup{$c}) {
36 $config{$c}=possibly_foolish_untaint($setup{$c});
38 elsif (ref $setup{$c} eq 'ARRAY') {
39 $config{$c}=[map { possibly_foolish_untaint($_) } @{$setup{$c}}]
47 if (! $config{refresh}) {
49 debug("rebuilding wiki..");
52 debug("refreshing wiki..");