perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Grimm <edgr...@dsblade00.wat.us.ray.com>
Subject Re: Dynamically generating file for download
Date Fri, 27 Jul 2007 16:56:30 GMT
On Fri, 27 Jul 2007, Lelton wrote:

> On 7/26/07, Frank Wesemann <f.wesemann@fotofinder.net> wrote:
>>
>> %http_headers_out is what you are looking for:
>>
>> $http_headers_out{'Content-Type'}  = '' the type of your data";
>> my $binary_data = collect_the_data(%params);
>> print OUT $binary_data;
>> exit;
>
> Thanks for the reply but that does not solve the problem. The
> content-type is the easy part! With that code in a [- -] I still get
> the inherited HTML templates which gets stuck in with the contents of
> $binary_data in the rendered output.
>
> As Ed mentioned, I need some way of preventing Embperl from processing
> any of the inherited templates in base.epl within a particular branch
> within the program logic.

The way you word this seems to me ambiguous.  Are you needing assistance
in how to do the two options I mentioned?

To have EmbPerl process it instead of EmbPerlObject, you'd basically
define a different file extension in apache, and configure it to use
EmbPerl for that extension.

To have an empty base.epo, you'd simply copy either /dev/null or nul
(depending on your OS) to base.epo into a subdirectory specifically for
pages without templates.

Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message