summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/template.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r--IkiWiki/Plugin/template.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index c87ba5102..27e475ae5 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -49,9 +49,10 @@ sub preprocess (@) { #{{{
$template->param($param => $params{$param});
}
- return IkiWiki::preprocess($params{page}, $params{destpage},
+ return IkiWiki::htmlize($params{page}, pagetype($pagesources{$params{page}}),
+ IkiWiki::preprocess($params{page}, $params{destpage},
IkiWiki::filter($params{page}, $params{destpage},
- $template->output));
+ $template->output)));
} # }}}
1