possible answer

master
http://kerravonsen.dreamwidth.org/ 2009-12-02 21:01:10 -05:00 committed by Joey Hess
parent 4d9ef221eb
commit bd2316dda7
1 changed files with 8 additions and 0 deletions

View File

@ -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]]