3 package IkiWiki
::Setup
::Yaml
;
14 eval q{use YAML::Any};
15 eval q{use YAML} if $@
;
17 $YAML::Syck
::ImplicitUnicode
=1;
18 IkiWiki
::Setup
::merge
(Load
(encode_utf8
($content)));
24 "# IkiWiki::Setup::Yaml - YAML formatted setup file",
28 IkiWiki
::Setup
::commented_dump
(\
&dumpline
, "")
38 eval q{use YAML::Old};
39 eval q{use YAML} if $@
;
43 my $dump=Dump
({$key => $value});
46 $dump=join("\n", map { $prefix.$_ } split(/\n/, $dump));