Hi.
I think it makes sense to use Apache filtering to seperate the
presentation layer. The idea is to have an application layer that
outputs xml and a template engine attached by filtering that merges the
xml into html pages.
What is already there? Are there any template engines that can be
Folks,
What classes/approach do you recommend for a mod_perl applications
interaction with the params and args of an HTTP request?
I want to wrap up dealing with GET POST UPDATE COOKIE and all other
aspects of an HTTP request in a simple, easy to use interface for
application programmers.
On Mon, 26 Dec 2005 14:17:00 +0100
Joachim Zobel [EMAIL PROTECTED] wrote:
I think it makes sense to use Apache filtering to seperate the
presentation layer. The idea is to have an application layer that
outputs xml and a template engine attached by filtering that merges
the xml into html
Original Message
From: Frank Wiles [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: modperl@perl.apache.org
Subject: Re:Filtering and Separation of Presentation Layer
Date: Mon Dec 26 2005 16:26:21
On Mon, 26 Dec 2005 14:17:00 +0100
Joachim Zobel [EMAIL PROTECTED] wrote:
I think
Folks,
I am finding it hard to correctly interpret the Apache2::Cookie
documentation: The docs say:
@names = $j-cookies();# all cookie names
When I do this, for the following cookies:
c1 = 'v1',
c2 = 'v2',
I expect @names to contain ( c1, c2 ), but instead
@names contains ( c1,
Am Montag, den 26.12.2005, 16:50 + schrieb Jeff:
I have been wondering recently about separation of presentation and data
in the context of AJAX - whilst keeping the presentation still
server-side. Anyone doing anything interesting in this space with mod_perl?
One thing I have in mind is
I use something similar to this with mod_perl to flash using xml.
Flash then uses xml in a template fashion. Our templates are
highly configurable this way.
In the near future we will be doing it as mod_perl to ajax.
Unfortunately we haven't decided on how we want to make
our code public yet.
This is what I do:
my $cookiejar = Apache2::Cookie::Jar-new( $this-{'ApacheRequest'} );
my @names = $cookiejar-cookies();
DEBUG_COOKIE 0 print STDERR -| Found These Cookies : . (join
, ,@names) . \n;
if ( $cookiejar-cookies(
Hi,
How are you creating the cookies?
Apache2::Cookie has the same interface as CGI pm (a method that takes
named parameters).
When I do this, for the following cookies:
c1 = 'v1',
c2 = 'v2',
Try this instead:
$c1 = Apache2::Cookie-new($r, -name = 'c1', -value = 'v1');
$c2 =
I use this:
use Apache2::Cookie;
sub get_cookies($) {
my $r = shift;
my $jar = Apache2::Cookie::Jar-new($r);
my $cookies = $jar-cookies();
return $cookies;
}
and call any cookie with
$cookies-{key}-value if $cookies-{key}-value;
please note that you need a new libapreq2, I
10 matches
Mail list logo