use utf8;
use namespace::autoclean;
-our $VERSION = 0.002;
+our $VERSION = 0.003;
has 'perl' => (is => 'rw', default => 'perl');
# Allow it only in debug mode.
$mt_scripts{'mt_check.cgi'} = 1 if ($c->debug());
- $self->not_found() unless ($mt_scripts{$cgi_script});
+ $self->not_found($c) unless ($mt_scripts{$cgi_script});
$ENV{MT_HOME} = $self->mt_home;
Catalyst::Controller::MovableType - Run Movable Type through Catalyst
+=head1 INSTALLATION
+
+Install Movable Type by extracting the zip into your template root directory.
+Move mt-static to root/static/mt. See Synopsis on how to inherit the Controller
+in your app. Presuming you installed Movable Type into root/mt, in your App's
+config add:
+
+<Controller::Root>
+ cgi_root_path mt/
+ cgi_dir mt/
+</Controller::Root>
+<Controller::Mt>
+ mt_home = /full/path/to/MyApp/root/mt/
+</Controller::Mt>
+
+The cgi_* directives are always given for the Root controller, no matter what
+the Root controller is or even if it doesn't even exist.
+
+Finally, make sure that the Static::Simple doesn't affect the Movable Type's
+installation directory. An example:
+
+__PACKAGE__->config(
+ name => 'TerveinkansaFi',
+ static => {
+ # first ignore all extensions, then specify static directories!
+ 'ignore_extensions' => [ qr/.*/ ],
+ 'dirs' => [ qw/static/ ]
+ }
+);
+
+
=head1 SYNOPSIS
package MyApp::Controller::Mt;
1;
-=head1 INSTALLATION
-
-Install Movable Type by extracting the zip into your template root directory.
-Move mt-static to root/static/mt, and configure Movable Type accordingly.
+=head1
=head1 DESCRIPTION