my %params=@_;
if (! exists $params{id}) {
- return "[[".gettext("template missing id parameter")."]]";
+ return "[[template ".gettext("missing id parameter")."]]";
}
my $template_page="templates/$params{id}";
);
};
if ($@) {
- return "[[".gettext("template failed to process:")." $@]]";
+ return "[[template ".gettext("failed to process:")." $@]]";
}
foreach my $param (keys %params) {
}
return IkiWiki::preprocess($params{page}, $params{destpage},
- $template->output);
+ IkiWiki::filter($params{page},
+ $template->output));
} # }}}
1