Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: HTML::Mason

by IlyaM (Parson)
on Apr 12, 2003 at 13:51 UTC ( [id://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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://250055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-16 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found