package HTML::Mason;
# Copyright (c) 1998 by Jonathan Swartz. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.

$HTML::Mason::VERSION = '0.5.1';

use HTML::Mason::Parser;
use HTML::Mason::Interp;

if ($ENV{MOD_PERL} || $HTML::Mason::IN_DEBUG_FILE) {
    require HTML::Mason::ApacheHandler;
} else {
    *HTML::Mason::ApacheHandler::new = sub {
	die "HTML::Mason::ApacheHandler class is not defined.  If you are in a mod_perl environment, this should have been brought in automatically.  Send a bug report to the Mason development team, and for now, try using HTML::Mason::ApacheHandler manually in your handler.pl.\n";
    }
}
*HTML::Mason::Preview::handle_preview_request = sub {
    die "HTML::Mason::Preview class is not defined.  With Mason 0.5 and greater you need to manually \"use HTML::Mason::Preview\" in your handler.pl.\n";
};

1;
