my $class=shift;
my $content=shift;
- eval q{use YAML};
+ eval q{use YAML::Any};
+ eval q{use YAML} if $@;
die $@ if $@;
IkiWiki::Setup::merge(Load($content));
}
sub gendump ($@) {
my $class=shift;
- eval q{use YAML};
+ eval q{use YAML::Any};
+ eval q{use YAML} if $@;
die $@ if $@;
"# IkiWiki::Setup::Yaml - YAML formatted setup file",