On tirsdag, feb 25, 2003, at 22:39 Europe/Oslo, Dave Rolsky wrote:


On Tue, 25 Feb 2003, Marcus Ramberg wrote:

This will handle a directive called MasonParStaticDirectoryIndex for
you.

I'm not sure why you add this parameter when you call
HTML::Mason::ComponentSource->new:

extra => { comp_root => 'par' },

There was a really good reason for that, either to get the dhandler or
the autohandler to work, uhm, but I really don't remember why.. I did
quite some reading in the mason classes, and wanted behavior required a
comp_root to be set. Or maybe it just got very late and something else
fixed it :) I'll look into it.

It expects comp_root if you're creating an
HTML::Mason::Component::FileBased object, yes. But you should either just
use HTML::Mason::Component or create a new subclass,
HTML::Mason::Component::PARBased.

Right. As of now, I'm using HTML::Mason::Component::FileBased :) I guess that's naughty. I'll have to make MasonX::Component::PARBased then. Just using HTML::Mason::Component doesn't seem to work very well, because it has no dir_path, and thus no autohandlers.


Marcus



Reply via email to