Dave Sherohman > Apache-Mojo-0.003 > Apache::Mojo

Download:
Apache-Mojo-0.003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.003   Source  

NAME ^

Apache::Mojo - mod_perl handler for Mojo

VERSION ^

version 0.003

SYNOPSIS ^

in httpd.conf:

  <Perl>
    use lib '...';
    use Apache::Mojo;
    use TestApp;
  </Perl>

  <Location />
     SetHandler  perl-script
     PerlSetEnv  MOJO_APP TestApp
     PerlSetEnv  MOJO_PATH /path/to/testapp/
     PerlHandler Apache::Mojo
  </Location>

DESCRIPTION ^

This is a mod_perl handler for Mojo/Mojolicious and Apache. For mod_perl2, use Apache2::Mojo.

Set the application class with the environment variable MOJO_APP.

If you use relative filesystem paths for templates, etc., set the environment variable MOJO_PATH to your base application path.

MOJO_RELOAD is also supported (e. g. PerlSetEnv MOJO_RELOAD 1).

SEE ALSO ^

Apache, Mojo, Mojolicious.

AUTHOR ^

Apache2::Mojo by Uwe Voelker, <uwe.voelker@gmx.de>

Ported to mod_perl 1 by Dave Sherohman, <dave@sherohman.org>

syntax highlighting: