Release of version 0.003.
okko [Fri, 16 Apr 2010 16:12:43 +0000 (19:12 +0300)]
Changes
MANIFEST.SKIP
README

diff --git a/Changes b/Changes
index 7de3591..9c112cb 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,5 @@
 0.003
-        2010-04-xx
+        2010-04-16
         Fixed internal not_found call to properly pass $c when an unexisting
         script was requested.
 
index d38347b..7e5c3c3 100644 (file)
@@ -1 +1,2 @@
 ^(?!script/\w+\.pl|examples/[^\.]+|lib/[\/\w]+\.p(m|od)|inc/|t/\w+\.t|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$)
+!~$
diff --git a/README b/README
index ae7717c..f142ffa 100644 (file)
--- a/README
+++ b/README
@@ -1,6 +1,10 @@
 NAME
     Catalyst::Controller::MovableType - Run Movable Type through Catalyst
 
+DESCRIPTION
+    Runs Movable Type 5 through Catalyst. Download Movable Type 5 from
+    http://www.movabletype.org/
+
 SYNOPSIS
      package MyApp::Controller::Mt;
 
@@ -12,14 +16,33 @@ SYNOPSIS
 
 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.
+    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:
 
-DESCRIPTION
-    Runs Movable Type 5 through Catalyst. Download Movable Type 5 from
-    http://www.movabletype.org/
+    <Controller::Root> cgi_root_path mt/ cgi_dir mt/ </Controller::Root>
+    <Controller::Mt> mt_home = /full/path/to/MyApp/root/mt/ <actions>
+    <capture_script_name> PathPart = mt </capture_script_name> </actions>
+    </Controller::Mt>
+
+    The cgi_* directives are always given for the Root controller, no matter
+    what the Root controller is.
+
+    You can modify the path where the script matches by configuring the
+    PathPart as shown above. This controller defaults to match on the path
+    "/mt".
+
+    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/ ] } );
 
 METHODS
+  capture_mt_script
+    Captures the path of the Movable Type.
+
   run_mt_script
     Runs the requested Movable Type .cgi script transparently with
     cgi_to_response.