On Wed, Jan 23, 2008 at 01:59:11PM -0000, Carl Johnstone wrote:
> >I foresee index and default going the fuck away for 5.80 unless you're in
> >compat mode.
> 
> I'm curious about these two.
> 
> I've made plenty of use of index, and off the top of my head can't see 
> another way of doing the home page of site.

sub home :Chained('/') :Args(0)
 
> As far as default, I'd currently use that to do my 404 handling - is there 
> an alternative way of doing that?

sub error_404 :Chained('/') :Args

(:Path probably works just as well as Chained in both examples)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to