Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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 -

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2018-02-25 22:41 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (315 votes). Check out past polls.