[Catalyst-commits] r6516 - in trunk/Catalyst-Action-REST: .
lib/Catalyst/Action
adam at dev.catalyst.perl.org
adam at dev.catalyst.perl.org
Sat Jul 7 21:08:01 GMT 2007
Author: adam
Date: 2007-07-07 21:08:01 +0100 (Sat, 07 Jul 2007)
New Revision: 6516
Modified:
trunk/Catalyst-Action-REST/README
trunk/Catalyst-Action-REST/lib/Catalyst/Action/REST.pm
Log:
Prepping for release 0.50
Modified: trunk/Catalyst-Action-REST/README
===================================================================
--- trunk/Catalyst-Action-REST/README 2007-07-07 20:05:09 UTC (rev 6515)
+++ trunk/Catalyst-Action-REST/README 2007-07-07 20:08:01 UTC (rev 6516)
@@ -135,6 +135,15 @@
{ data => $yourdata }
+ View
+ Uses a regular Catalyst view. For example, if you wanted to have your
+ "text/html" and "text/xml" views rendered by TT:
+
+ 'text/html' => [ 'View', 'TT' ],
+ 'text/xml' => [ 'View', 'XML' ],
+
+ Will do the trick nicely.
+
By default, Catalyst::Controller::REST will return a "415 Unsupported
Media Type" response if an attempt to use an unsupported content-type is
made. You can ensure that something is always returned by setting the
@@ -260,8 +269,7 @@
],
'text/x-config-general' => [ 'Data::Serializer', 'Config::General' ]
,
- 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serializat
- ion' ],
+ 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serialization' ],
},
}
);
Modified: trunk/Catalyst-Action-REST/lib/Catalyst/Action/REST.pm
===================================================================
--- trunk/Catalyst-Action-REST/lib/Catalyst/Action/REST.pm 2007-07-07 20:05:09 UTC (rev 6515)
+++ trunk/Catalyst-Action-REST/lib/Catalyst/Action/REST.pm 2007-07-07 20:08:01 UTC (rev 6516)
@@ -16,7 +16,7 @@
use 5.8.1;
our
- $VERSION = '0.41';
+ $VERSION = '0.50';
# This is wrong in several ways. First, there's no guarantee that
# Catalyst.pm has not been subclassed. Two, there's no guarantee that
More information about the Catalyst-commits
mailing list