[jifty-devel] Sending a web page as an email attachment
jesse at bestpractical.com
Fri Nov 30 14:46:36 EST 2007
On Wed, Nov 28, 2007 at 09:41:30AM -0500, Henry Baragar wrote:
> How does one compile a Jifty/Mason script and get the output for sending as
> an email attachment. We have followed the instructions from:
> which has the following code skeleton:
> use HTML::Mason;
> use strict;
> my $outbuf;
> my $interp = HTML::Mason::Interp->new
> (comp_root => '/path/to/comp_root',
> data_dir => '/path/to/data_dir',
> out_method => \$outbuf
> $interp->exec(<component-path>, <args>...);
> # Do something with $outbuf
> It appears that the script is run (since there are messages when we inject
> errors into the script), but we never get any output in $outbuf.
> Do we have to do something special for Jifty?
> What is the right (easiest?) way to do this in Jifty?
Jifty is replacing the output method of mason so it can be somewhat
clever about it. I almost wonder if the right thing is to actually just
do an HTTP GET.
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
More information about the jifty-devel