Hi,
I have a Mason application where I do a subrequest to build a HTML Mail with
Mason. Now I'm moving to MasonX::WebApp and so this part takes place in
WebApp submodule. Now, how can I access the interp object from there ?
Without that I've tried it with :
...
my $mail;
my $comp_root = File::Spec->catdir( $self->apache_req->document_root,
'mail');
my $data_dir = '/tmp/';
$self->{logger}->debug ("COMP_ROOT = $comp_root");
$self->{logger}->debug ("COMP = $template");
my $interp = HTML::Mason::Interp->new
(comp_root => $comp_root,
data_dir => $data_dir,
out_method => \$mail,
);
$interp->exec ( $template,
img => $self->session->{imgUrl},
text => $params->{text} ,
);
I get this in my error log:
COMP_ROOT = /serv/www/mydomain/data/mail
COMP = card_truck_wunsch/card_truck_wunsch_.html
Component path given to Interp->load must be absolute (was given
card_truck_wunsch/card_truck_wunsch_.html)
Any help ?
Rolf Schaufelberger
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users