comments: load inline and mdwn lazily

master
Simon McVittie 2008-11-18 10:43:39 +00:00
parent 9d92fd5eb0
commit 4663f364bb
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ sub import { #{{{
} # }}} } # }}}
sub htmlize { # {{{ sub htmlize { # {{{
eval { use IkiWiki::Plugin::mdwn; }; eval q{use IkiWiki::Plugin::mdwn};
error($@) if ($@); error($@) if ($@);
return IkiWiki::Plugin::mdwn::htmlize(@_) return IkiWiki::Plugin::mdwn::htmlize(@_)
} # }}} } # }}}
@ -72,7 +72,7 @@ sub preprocess (@) { #{{{
my $posts = ''; my $posts = '';
unless (defined $params{inline} && !IkiWiki::yesno($params{inline})) { unless (defined $params{inline} && !IkiWiki::yesno($params{inline})) {
eval { use IkiWiki::Plugin::inline; }; eval q{use IkiWiki::Plugin::inline};
error($@) if ($@); error($@) if ($@);
my @args = ( my @args = (
pages => "internal($params{page}/_comment_*)", pages => "internal($params{page}/_comment_*)",