[Catalyst] Sanity Check -- requesting feedback on chaining approach

will trillich will.trillich at serensoft.com
Wed Feb 16 22:13:24 GMT 2011


On Wed, Feb 16, 2011 at 11:08 AM, Dave Rolsky <autarch at urth.org> wrote:

> On Tue, 15 Feb 2011, will trillich wrote:
>  package MyApp::Controller::Xyzzy;
>
>  sub _set_xyzzy  : Chained               PathPart('xyzzy') CaptureArgs(0)=
 {
>  }
>    sub list      : Chained('_set_xyzzy') PathPart('')      Args(0)       =
 {
>  }
>    # CSV dispatch based on Accept header, not URI!
>    sub _set_item : Chained('_set_xyzzy') PathPart('')      CaptureArgs(1)=
 {
>  }
>    sub item      : Chained('item')       PathPart('')      Args(0)       =
 {
>  }
>

Hmm. Curious about the inline comment there -- how do you do CSV based on
accept-header?

-- =

The first step towards getting somewhere is to decide that you are not going
to stay where you are.  -- J.P.Morgan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110216/0e44b=
dc6/attachment.htm


More information about the Catalyst mailing list