]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
* Make the map plugin notice when pages in the map are deleted and update
[ikiwiki.git] / IkiWiki.pm
index 96da3ba9d440855b58be4ff713bb8e9d06de5b1d..b4c588c3a39f42bd383170b2b3938195da8cf8d7 100644 (file)
@@ -606,7 +606,7 @@ sub preprocess ($$$;$$) { #{{{
                my $command=shift;
                my $params=shift;
                if (length $escape) {
-                       return "[[$command $params]]";
+                       return "\\[[$command $params]]";
                }
                elsif (exists $hooks{preprocess}{$command}) {
                        return "" if $scan && ! $hooks{preprocess}{$command}{scan};
@@ -842,7 +842,6 @@ sub template_params (@) { #{{{
                return "";
        }
 
-       require HTML::Template;
        my @ret=(
                filter => sub {
                        my $text_ref = shift;
@@ -857,6 +856,7 @@ sub template_params (@) { #{{{
 } #}}}
 
 sub template ($;@) { #{{{
+       require HTML::Template;
        HTML::Template->new(template_params(@_));
 } #}}}