summaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-06-29 15:13:23 +0200
committerintrigeri <intrigeri@boum.org>2010-06-29 15:17:56 +0200
commitdcd57dd5c9f3265bb7a78a5696b90976698c43aa (patch)
treec28ea45d18d36e5a0195bef7027b2c0df3b94af1 /IkiWiki/Render.pm
parent4f44534d72c9a9a947bc38a3cb4987705c25bea5 (diff)
Add a fullpage arg to filter.
Set it to true every time IkiWiki::filter is called on a full page's content. This is a much nicer solution, for the po plugin, than previous whitelisting using caller().
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index a653ab2da..233d093ed 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -232,7 +232,7 @@ sub render ($$) {
linkify($page, $page,
preprocess($page, $page,
filter($page, $page,
- readfile($srcfile)))));
+ readfile($srcfile), 'fullpage'))));
my $output=htmlpage($page);
writefile($output, $config{destdir}, genpage($page, $content));
@@ -837,7 +837,7 @@ sub commandline_render () {
my $content=readfile($srcfile);
my $page=pagename($file);
$pagesources{$page}=$file;
- $content=filter($page, $page, $content);
+ $content=filter($page, $page, $content, 'fullpage');
$content=preprocess($page, $page, $content);
$content=linkify($page, $page, $content);
$content=htmlize($page, $page, $type, $content);