On Thu, 3 Jan 2008, Peter Edwards wrote:

In the latter case there's still some work to do if you want to have a
shared config file but that's not too hard to figure out.

There's a Catalyst advent calendar article showing how to do this:

http://catalyst.perl.org/calendar/2007/14

I did something sort of similar for VegGuide.Org, except the config simply lives in a single module (VegGuide::Config) that is designed to be usable for Catalyst and outside of it.

Basically, it has lots of class methods that return various config items, and also a few methods for returning Catalyst-structured config, CatalystImports() and CatalystConfig().

http://svn.urth.org/filedetails.php?repname=RegVeg&path=%2Ftrunk%2Flib%2FVegGuide%2FConfig.pm&rev=0&sc=0


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

_______________________________________________
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