X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/cf35ee04cddd7b9b39636499dd24b689443c0e97..c23abb3553cf03e9b85aff0e9a6cc8e1c55acde5:/IkiWiki/Plugin/template.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm index c87ba5102..416762fe1 100644 --- a/IkiWiki/Plugin/template.pm +++ b/IkiWiki/Plugin/template.pm @@ -46,7 +46,15 @@ sub preprocess (@) { #{{{ } foreach my $param (keys %params) { - $template->param($param => $params{$param}); + if ($template->query(name => $param)) { + $template->param($param => + IkiWiki::htmlize($params{page}, + pagetype($pagesources{$params{page}}), + $params{$param})); + } + if ($template->query(name => "raw_$param")) { + $template->param("raw_$param" => $params{$param}); + } } return IkiWiki::preprocess($params{page}, $params{destpage},