RE: canned footers

2000-08-16 Thread jbodnar

It may not be exactly what you're looking for but try looking at
Apache::Sandwich or Apache::ProxyStuff

On 16-Aug-2000 Alex Menendez wrote:
 hello, all
 
 I am trying to write a module that generates a canned footer for all
 html and cgi pages on my site.
 the html part is pretty easy and I have already implemented it. However,
 I am currently having trouble adding it
 to standalone cgi scripts that are not parsed by the server. I have
 tried a number of variations with mod_perl subrequests but none of them
 seem to work right. I also thought about reading the scripts contents in
 the module and using eval. However, that seems a little cumbersome.
 
 Have any of you implemented such thing before? Any ideas?
 
 -amen

-- 
Jason Bodnar + [EMAIL PROTECTED] + Team Linux

It's okay, Marge.  I've learned my lesson.  A mountain of sugar is too
much for one man.  It's clear now why God portions it out in those 
tiny packets, and why he lives on a plantation in Hawaii.

-- Homer Simpson
   Lisa's Rival




RE: canned footers

2000-08-16 Thread Jerrad Pierce

This already exists, can't get more canned than that.

checkout mod_layout here:

http://www.tangent.org/mod_layout/


Granted it's not a perl module, but it works and is rather customizable...
-Original Message-
From: Alex Menendez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 1:26 PM
To: [EMAIL PROTECTED]
Subject: canned footers


hello, all

I am trying to write a module that generates a canned footer for all
html and cgi pages on my site.
the html part is pretty easy and I have already implemented 
it. However,
I am currently having trouble adding it
to standalone cgi scripts that are not parsed by the server. I have
tried a number of variations with mod_perl subrequests but none of them
seem to work right. I also thought about reading the scripts 
contents in
the module and using eval. However, that seems a little cumbersome.

Have any of you implemented such thing before? Any ideas?

-amen




Re: canned footers

2000-08-16 Thread Bruce W. Hoylman


Have you looked at Apache::Sandwich from CPAN?  It is easy to implement
and I have used it for awhile now to add confidentiality headers and
footers to pages in a small to medium site.

cpan m /Apache::Sandwich/
Module id = Apache::Sandwich
CPAN_USERID  VKHERA (Vivek Khera [EMAIL PROTECTED])
CPAN_VERSION 2.04
CPAN_FILEV/VK/VKHERA/Apache-Sandwich-2.04.tar.gz
MANPAGE  Apache::Sandwich - Layered document (sandwich) maker
INST_FILE/opt/gnu/lib/perl5/site_perl/5.005/Apache/Sandwich.pm
INST_VERSION 2.04

It could most certainly be use as a basis for your needs and
requirements.

Peace.



Re: canned footers

2000-08-16 Thread Alex Menendez

Your right. this works great for html! Unfortunately, however,  Apache
sandwich really does not work for me because it only deals with GET
requests and it can not deal with cgi requests directly. I would need to
alter my cgi's in order to use sandwich. I am looking for a mod_perl
solution  that will add footers to unaltered stand alone cgis.

any other ideas out there?

thanx,
-amen

"Bruce W. Hoylman" wrote:

 Have you looked at Apache::Sandwich from CPAN?  It is easy to implement
 and I have used it for awhile now to add confidentiality headers and
 footers to pages in a small to medium site.

 cpan m /Apache::Sandwich/
 Module id = Apache::Sandwich
 CPAN_USERID  VKHERA (Vivek Khera [EMAIL PROTECTED])
 CPAN_VERSION 2.04
 CPAN_FILEV/VK/VKHERA/Apache-Sandwich-2.04.tar.gz
 MANPAGE  Apache::Sandwich - Layered document (sandwich) maker
 INST_FILE/opt/gnu/lib/perl5/site_perl/5.005/Apache/Sandwich.pm
 INST_VERSION 2.04

 It could most certainly be use as a basis for your needs and
 requirements.

 Peace.




Re: canned footers

2000-08-16 Thread Vivek Khera

 "BWH" == Bruce W Hoylman [EMAIL PROTECTED] writes:

BWH Have you looked at Apache::Sandwich from CPAN?  It is easy to implement
BWH and I have used it for awhile now to add confidentiality headers and
BWH footers to pages in a small to medium site.

The only real trick is that you are responsible for the resulting
"sandwich" to be valid HTML.  Apache::Sandwich does not insert
headers/footers in the right place within a complete HTML document.
It just pastes text files together.

That said, I find it most useful ;-)

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-301-545-6996
GPG  MIME spoken herehttp://www.khera.org/~vivek/



RE: canned footers

2000-08-16 Thread Geoffrey Young



 -Original Message-
 From: Alex Menendez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 16, 2000 2:07 PM
 To: [EMAIL PROTECTED]
 Cc: The MODPERL
 Subject: Re: canned footers
 
 
 Your right. this works great for html! Unfortunately, however,  Apache
 sandwich really does not work for me because it only deals with GET
 requests and it can not deal with cgi requests directly. I 
 would need to
 alter my cgi's in order to use sandwich. I am looking for a mod_perl
 solution  that will add footers to unaltered stand alone cgis.
 
 any other ideas out there?

you would need to implement a filter that was capable of parsing the output
of your cgi script...  look into using Apache::Filter along with a slightly
modified version the Apache::Footer example in the eagle book that puts the
the footer in the right place...

HTH

--Geoff 

 
 thanx,
 -amen
 
 "Bruce W. Hoylman" wrote:
 
  Have you looked at Apache::Sandwich from CPAN?  It is easy 
 to implement
  and I have used it for awhile now to add confidentiality headers and
  footers to pages in a small to medium site.
 
  cpan m /Apache::Sandwich/
  Module id = Apache::Sandwich
  CPAN_USERID  VKHERA (Vivek Khera [EMAIL PROTECTED])
  CPAN_VERSION 2.04
  CPAN_FILEV/VK/VKHERA/Apache-Sandwich-2.04.tar.gz
  MANPAGE  Apache::Sandwich - Layered document 
 (sandwich) maker
  INST_FILE
 /opt/gnu/lib/perl5/site_perl/5.005/Apache/Sandwich.pm
  INST_VERSION 2.04
 
  It could most certainly be use as a basis for your needs and
  requirements.
 
  Peace.
 



Re: canned footers

2000-08-16 Thread jbodnar

Take a look at Apache::ProxyStuff. It requires you set another server (can be
virtual) but it doesn't care about methods or content type.

On 16-Aug-2000 Alex Menendez wrote:
 Your right. this works great for html! Unfortunately, however,  Apache
 sandwich really does not work for me because it only deals with GET
 requests and it can not deal with cgi requests directly. I would need to
 alter my cgi's in order to use sandwich. I am looking for a mod_perl
 solution  that will add footers to unaltered stand alone cgis.
 
 any other ideas out there?
 
 thanx,
 -amen
 
 "Bruce W. Hoylman" wrote:
 
 Have you looked at Apache::Sandwich from CPAN?  It is easy to implement
 and I have used it for awhile now to add confidentiality headers and
 footers to pages in a small to medium site.

 cpan m /Apache::Sandwich/
 Module id = Apache::Sandwich
 CPAN_USERID  VKHERA (Vivek Khera [EMAIL PROTECTED])
 CPAN_VERSION 2.04
 CPAN_FILEV/VK/VKHERA/Apache-Sandwich-2.04.tar.gz
 MANPAGE  Apache::Sandwich - Layered document (sandwich) maker
 INST_FILE/opt/gnu/lib/perl5/site_perl/5.005/Apache/Sandwich.pm
 INST_VERSION 2.04

 It could most certainly be use as a basis for your needs and
 requirements.

 Peace.

-- 
Jason Bodnar + [EMAIL PROTECTED] + Team Linux

Marge:  We're just going to have to cut down on luxuries.

Homer:  Well, you know, we're always buying Maggie vaccinations for
diseases she doesn't even have.

   Lisa's Pony




Re: canned footers

2000-08-16 Thread jbodnar


On 16-Aug-2000 Vivek Khera wrote:
 "BWH" == Bruce W Hoylman [EMAIL PROTECTED] writes:
 
 BWH Have you looked at Apache::Sandwich from CPAN?  It is easy to implement
 BWH and I have used it for awhile now to add confidentiality headers and
 BWH footers to pages in a small to medium site.
 
 The only real trick is that you are responsible for the resulting
 "sandwich" to be valid HTML.  Apache::Sandwich does not insert
 headers/footers in the right place within a complete HTML document.
 It just pastes text files together.

Apache::ProxyStuff puts the headers and footers where they belong in the HTML
document so you can use existing content and even modify the BODY attributes to
meet your needs.

-- 
Jason Bodnar + [EMAIL PROTECTED] + Team Linux

I'm tired of being a wanna-be league bowler, I wanna be a league bowler!

-- Homer Simpson
   Team Homer