From: joey Date: Mon, 13 Mar 2006 02:22:42 +0000 (+0000) Subject: hide markdown goo away, it also speeds up the cgis a bit X-Git-Tag: 1.0~376 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e5c7926cf8f54e25bb6c9c5f3b3be5e8667b47b;p=ikiwiki.git hide markdown goo away, it also speeds up the cgis a bit --- diff --git a/ikiwiki b/ikiwiki index 729f8628b..de71414ed 100755 --- a/ikiwiki +++ b/ikiwiki @@ -8,10 +8,6 @@ use Memoize; use File::Spec; use HTML::Template; use Getopt::Long; -BEGIN { - $blosxom::version="is a proper perl module too much to ask?"; - do "/usr/bin/markdown"; -} my (%links, %oldlinks, %oldpagemtime, %renderedfiles, %pagesources); @@ -254,6 +250,11 @@ sub htmlize ($$) { #{{{ my $type=shift; my $content=shift; + if (! $INC{"/usr/bin/markdown"}) { + $blosxom::version="is a proper perl module too much to ask?"; + do "/usr/bin/markdown"; + } + if ($type eq '.mdwn') { return Markdown::Markdown($content); }