aboutsummaryrefslogtreecommitdiff
path: root/doc
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 /doc
parent4f44534d72c9a9a947bc38a3cb4987705c25bea5 (diff)
downloadikiwiki-dcd57dd5c9f3265bb7a78a5696b90976698c43aa.tar
ikiwiki-dcd57dd5c9f3265bb7a78a5696b90976698c43aa.tar.gz
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 'doc')
-rw-r--r--doc/plugins/write.mdwn4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index a921b9a02..15ed08d82 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -200,7 +200,9 @@ value is ignored.
Runs on the raw source of a page, before anything else touches it, and can
make arbitrary changes. The function is passed named parameters "page",
-"destpage", and "content". It should return the filtered content.
+"destpage", "content" and "fullpage". "fullpage" is a true value if,
+and only if, a full page's content is being filtered, e.g. as opposed
+to a directive parameter. It should return the filtered content.
### preprocess