MasonX-Maypole - Re: getting started (cont)

Posted on Fri Feb 11 02:36:56 2005 by davebaird in response to 89 (See the whole thread of 15)
Re: getting started (cont)

OK. Don't set MasonCompRoot for a MasonX::Maypole app. MX::MP takes care of that. It sets the 'main' comp root to the template_root config setting. Your settings for this look OK:

BeerDB->config->{template_root} = '/Public/mason/beerdb'; BeerDB->config->{uri_base} = '/beerdb';

There may be a gotcha with the factory root. In the distribution, you get

lib/templates/factory lib/templates/beerd

You need to copy the contents of lib/templates/factory to /Public/apache/maypole. In other words, the factory comp_root needs to point to the factory subdir of the supplied templates. Don't bother with the beerdb subdir by the way - it's just a single comp that I haven't ported from TT.

d.

Direct Responses: 93 | Write a response