Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: HTML::Mason

by IlyaM (Parson)
on Apr 12, 2003 at 13:51 UTC ( #250055=note: print w/ replies, xml ) Need Help??

in reply to HTML::Mason

Paths to components are always relative to component root. If your component root is /foo/bar and your component path is /foo/bar than it corresponds to file /foo/bar/foo/bar. It seems that Mason treats this situation as error (as it is very unlickely that a component root is same as a component path) so it produces this error.

Solution: if you want to use a component paths which match filenames use component root == '/' (BTW I think it is default when you use HTML::Mason in standalone mode but I'm not sure). Or set component root to something else and use correct component paths.

Ilya Martynov,
Quality Perl Programming and Unix Support UK managed @ offshore prices -
Personal website -

Comment on Re: HTML::Mason
Replies are listed 'Best First'.
Re: Re: HTML::Mason
by set_uk (Pilgrim) on Apr 12, 2003 at 14:37 UTC
    Tried that and it then complains saying it cant find the components from / as follows:-
    could not find component for path '/lib/header.mas' Stack: [/usr/local/lib/perl5/site_perl/5.8.0/Exception/] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/] [/export/home/set/scripts/perl/site_build/base_dir/htdocs/reviews/au +tohandler:9] Stack: [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/]
    I'm assuming that this just doesn't work out of the box as a good example.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://250055]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-10-04 04:38 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (98 votes), past polls