You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Brent Baude <ba...@us.ibm.com> on 2003/03/10 21:11:22 UTC

apache::sandwich

I recently uprgaded from a pre-RedHat8 system to RedHat 8.  I used the
Apache::Sandwich module to specify a directory and footer filename in the
directives to allow me to include footer files dynamically (without having
to specify an include statement in each file served).  Is there something
like this module or an alternative for Apache 2 versions?

Thanks in advance for due consideration.

______________________________________

Brent J. Baude   |   Information Architect for TCP/IP, Security, & Linux
3605 Hwy 52N
Rochester, MN  55901

(507) 253-0708
T/L 8-553-0708
FAX (507) 253-5192





Re: apache::sandwich

Posted by Nick Tonkin <ni...@tonkinresolutions.com>.
D'oh, please s/Apache::Filter/Apache::Sandwich/ in my earlier reply.
Sorry.

- nick

-- 

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>


Re: apache::sandwich

Posted by Stas Bekman <st...@stason.org>.
Nick Tonkin wrote:
> On Mon, 10 Mar 2003, Brent Baude wrote:
> 
> 
>>I recently uprgaded from a pre-RedHat8 system to RedHat 8.  I used the
>>Apache::Sandwich module to specify a directory and footer filename in the
>>directives to allow me to include footer files dynamically (without having
>>to specify an include statement in each file served).  Is there something
>>like this module or an alternative for Apache 2 versions?
> 
> 
> mod_perl 2 supports output filtering, which could provide a streamlined
> way of doing what Apache::Filter does fairly trivially AFAIK. But you'd
> have to read up on filters and implement it yourself.
> 
> Another option would be for you to port Apache::Filter to run under mp2.
> Then your code as well as anyone else's who uses that module would run
> unchanged under mp2. That would be a Good Thing and you'd be a mod_perl
> hero. People on this list would help if you got stuck, and the
> documentation for porting is getting quite extensive.
> 
> This doc: http://perl.apache.org/docs/2.0/devel/porting/porting.html is
> what you want.

What Nick said and make sure to also read:
http://perl.apache.org/docs/2.0/user/compat/compat.html

;)

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Porting Orphans : (was: apache::sandwich)

Posted by Stas Bekman <st...@stason.org>.
siberian@siberian.org wrote:
> This brings up a good point, is there a list of 'ModPerl Orphans' 
> anywhere? For the most part I would imagine that a modules 
> author/maintainer will manage the transition to mp2 but there must be a 
> ton of modules that are Orphans with little hope of making it over 
> unless some kind developer makes it happen.
> 
> It would be pretty great if there was a list and people could start 
> taking responsibility for the tasks to avoid duplicate work as well as 
> to guide folks who have time to contribute and are not sure where to start.
> 
> Lame suggestion most likely. I was just thinking 'I would like to try to 
> port something but where to start....'
> 
> If there is interest in this I can put up a page for this sort of thing 
> and send email out to all of the existing authors, hunting for orphans 
> to post.

It's a good idea to compile a list of modules that need to get ported, 
discarding those that aren't needed in mp2 (e.g. Apache::Filter and 
FilterChain are definitely to stay in the mp1 world I believe). However there 
is a problem with porting modules that include XS code, since the replacement 
for Apache::src hasn't been completed yet. Pure perl modules porting should be 
fine.

FWIW, I've ported Apache::Peek and Apache::Scoreboard to 2.0, but I can't 
release them yet as they need a support from mod_perl-2.0 (because of 
Apache::src/xs stuff), which wasn't committed yet. We are hoping to deliver a 
much better Makefile.PL support (including things like installing into 
Apache2/ and automatic configuration of the MM attributes for compilation)

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Porting Orphans : (was: apache::sandwich)

Posted by si...@siberian.org.
This brings up a good point, is there a list of 'ModPerl 
Orphans' anywhere? For the most part I would imagine that 
a modules author/maintainer will manage the transition to 
mp2 but there must be a ton of modules that are Orphans 
with little hope of making it over unless some kind 
developer makes it happen.

It would be pretty great if there was a list and people 
could start taking responsibility for the tasks to avoid 
duplicate work as well as to guide folks who have time to 
contribute and are not sure where to start.

Lame suggestion most likely. I was just thinking 'I would 
like to try to port something but where to start....'

If there is interest in this I can put up a page for this 
sort of thing and send email out to all of the existing 
authors, hunting for orphans to post.

John-

On Mon, 10 Mar 2003 12:31:05 -0800 (PST)
  Nick Tonkin <ni...@tonkinresolutions.com> wrote:
>Another option would be for you to port Apache::Filter to 
>run under mp2.
>Then your code as well as anyone else's who uses that 
>module would run
>unchanged under mp2. That would be a Good Thing and you'd 
>be a mod_perl
>hero. People on this list would help if you got stuck, 
>and the
>documentation for porting is getting quite extensive.
>
>This doc: 
>http://perl.apache.org/docs/2.0/devel/porting/porting.html 
>is
>what you want.
>
>Good luck,
>
>- nick
>
>-- 
>
>~~~~~~~~~~~~~~~~~~~~
>Nick Tonkin   {|8^)>
>


Re: apache::sandwich

Posted by Nick Tonkin <ni...@tonkinresolutions.com>.
On Mon, 10 Mar 2003, Brent Baude wrote:

> I recently uprgaded from a pre-RedHat8 system to RedHat 8.  I used the
> Apache::Sandwich module to specify a directory and footer filename in the
> directives to allow me to include footer files dynamically (without having
> to specify an include statement in each file served).  Is there something
> like this module or an alternative for Apache 2 versions?

mod_perl 2 supports output filtering, which could provide a streamlined
way of doing what Apache::Filter does fairly trivially AFAIK. But you'd
have to read up on filters and implement it yourself.

Another option would be for you to port Apache::Filter to run under mp2.
Then your code as well as anyone else's who uses that module would run
unchanged under mp2. That would be a Good Thing and you'd be a mod_perl
hero. People on this list would help if you got stuck, and the
documentation for porting is getting quite extensive.

This doc: http://perl.apache.org/docs/2.0/devel/porting/porting.html is
what you want.

Good luck,

- nick

-- 

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>