perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Wolf <gw...@gwolf.org>
Subject Re: Dynamically generating file for download
Date Tue, 31 Jul 2007 16:39:38 GMT
Lelton dijo [Fri, Jul 27, 2007 at 09:28:03AM +1000]:
> 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.

Hi,

You might want to take a look at a little system I wrote, implementing
a simple SMB-to-web read-only gateway using Embperl. It includes the
answer to this point you are raising, although I don't know it's done
in the cleanest way - but it works perfectly :)

http://www.gwolf.org/soft/smbgate/SmbGate-1.0.tar.gz

There are still some references to my workplace sprinkled through the
code - If you want to use it, look for any occurrences of the 'iiec'
string :)

Greetings,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF

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


Mime
View raw message