3 package IkiWiki
::Setup
::Yaml
;
13 eval q{use YAML::Any};
14 eval q{use YAML} if $@
;
16 $YAML::Syck
::ImplicitUnicode
=1;
17 IkiWiki
::Setup
::merge
(Load
($content));
23 "# IkiWiki::Setup::Yaml - YAML formatted setup file",
27 IkiWiki
::Setup
::commented_dump
(\
&dumpline
, "")
37 eval q{use YAML::Old};
38 eval q{use YAML} if $@
;
42 my $dump=Dump
({$key => $value});
45 $dump=join("\n", map { $prefix.$_ } split(/\n/, $dump));