summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Setup/Yaml.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Yaml.pm b/IkiWiki/Setup/Yaml.pm
index ba9192faf..c7ff1988e 100644
--- a/IkiWiki/Setup/Yaml.pm
+++ b/IkiWiki/Setup/Yaml.pm
@@ -5,17 +5,21 @@ package IkiWiki::Setup::Yaml;
use warnings;
use strict;
use IkiWiki;
-use YAML;
sub loaddump ($$) {
my $class=shift;
my $content=shift;
+ eval q{use YAML};
+ die $@ if $@;
IkiWiki::Setup::merge(Load($content));
}
sub gendump ($@) {
my $class=shift;
+
+ eval q{use YAML};
+ die $@ if $@;
"# IkiWiki::Setup::Yaml - YAML formatted setup file",
"#",