Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org


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/Class.pm:153] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:967] [/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/Request.pm:281] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:385] [/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:351]
    I'm assuming that this just doesn't work out of the box as a good example.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-30 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls