Posted on 2005-02-11 00:36:56-08 by davebaird in response to 89
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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.