3 package IkiWiki::Setup::Yaml;
13 eval q{use YAML::Any};
14 eval q{use YAML} if $@;
16 IkiWiki::Setup::merge(Load($content));
22 "# IkiWiki::Setup::Yaml - YAML formatted setup file",
26 IkiWiki::Setup::commented_dump(\&dumpline, "")
36 eval q{use YAML::Old};
37 eval q{use YAML} if $@;
41 my $dump=Dump({$key => $value});
44 $dump=join("\n", map { $prefix.$_ } split(/\n/, $dump));