[Catalyst-dev] Request for Comments: Chained

Matt S Trout dbix-class at trout.me.uk
Tue Jun 20 21:48:14 CEST 2006


John Napiorkowski wrote:
> Something like this will definitely make my work a lot
> easier.  I've been fudging it with Regex and
> LocalRegex quite a bit.  This is the type of thing I
> think I could use right away.
> 
> One thing that wasn't clear to me in the docs shown is
> if we could apply regexs to the captured stuff. It
> would be nice to have a clean way to do some
> validation.  I'd like to allow /hello/123 but exclude
> /hello/1234 for example.  Maybe it's a quibble because
> you could just do it in the action subroutine but you
> asked for comments :)

This comes into the category (at least for me, who wrote the original code for 
the new dispatchtype) of "I'm not sure how to do it right yet, so let people 
do it in the action subroutine is and we'll add nicer syntax once we know what 
features people actually need out of it" :)

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst-dev mailing list