diff options
author | http://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web> | 2009-12-02 21:01:10 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2009-12-02 21:01:10 -0500 |
commit | bd2316dda729116edca516c4fc6cd906b4f1ef7e (patch) | |
tree | 820e73c9e57d7d738b99413fe689527ac45d6fc2 /doc | |
parent | 4d9ef221eb446f87706f48d5df6c2f99ade16543 (diff) | |
download | ikiwiki-bd2316dda729116edca516c4fc6cd906b4f1ef7e.tar ikiwiki-bd2316dda729116edca516c4fc6cd906b4f1ef7e.tar.gz |
possible answer
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/understanding_filter_hooks.mdwn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/forum/understanding_filter_hooks.mdwn b/doc/forum/understanding_filter_hooks.mdwn index 061d6d295..e6ddc91cc 100644 --- a/doc/forum/understanding_filter_hooks.mdwn +++ b/doc/forum/understanding_filter_hooks.mdwn @@ -7,3 +7,11 @@ but right now I have to have a look at the content, which I don't like so much. Is there a better hook to use for this? I need to transform the input before preprocessing. [[DavidBremner]] + +>You can check the type of the page without having to look at the content of the page: + + my $page_file=$pagesources{$page}; + my $page_type=pagetype($page_file); + +>Then you can check whether `$page_type` is "tex". +>--[[KathrynAndersen]] |