* Viljo Marrandi <[EMAIL PROTECTED]> [2002-05-02 08:57]:
> How can I make my system so, that my perl handler is not called for
> each image, css and script the page has?
[-- snip --]
The example handlers that come with HTML::Mason have an answer; in
My::Site::handler, add something like:
# If you plan to intermix images in the same directory as
# components, activate the following to prevent Mason from
# evaluating image files as components.
#
return DECLINED if $r->content_type && $r->content_type !~ m|^text/|i;
This should be the first(ish) thing that handler() does, before anything
else takes place.
(darren)
--
Violence is to dictatorship as propaganda is to democracy.
-- Noam Chomsky