I think that a "templating system" is the core component of a CMS (content
management system).
Probably the right direction (for a good TS) is an engine like Axkit.
It support other templating system like ASP and Mason too.
It need more documentation and more real world examples and more users
(IM
ivan wrote:
>
> hi there ,
>
> I encoutred a problem with ASP.pm (ver.2.17) and multipart form what is
> happening is that when I try to use "file" fields I get something like this
> into the log
>
> [Mon Jul 9 23:20:22 2001] [error] [client 192.168.0.5] Invalid method in
> request ---
The URL
ftp://ftp.dev.ecos.de/pub/perl/dbi/DBIx-Recordset-0.24.tar.gz
has entered CPAN as
file: $CPAN/authors/id/G/GR/GRICHTER/DBIx-Recordset-0.24.tar.gz
size: 92611 bytes
md5: 76835b342ac63d731a4eb9529613ee99
DBIx::Recordset is a perl module for abstraction and simplification of
da
>
> > Embperl doesn't need them before the fixup phase, but sometimes you want
> > different values for the environment variables for different
directories,
> > which doesn't work with SetEnv
>
> really? glancing at mod_env.c looks like it should work.
>
The docs says:
SetEnv directive
Syntax:
On Tue, 10 Jul 2001, Gerald Richter wrote:
> Yes, this fixes the problem :-)
cool.
> Embperl doesn't need them before the fixup phase, but sometimes you want
> different values for the environment variables for different directories,
> which doesn't work with SetEnv
really? glancing at mod_
> this patch should fix the problem.
Yes, this fixes the problem :-)
> you should also be able to
> s/PerlSetEnv/SetEnv/g, unless Embperl needs these variables before the
> fixup phase.
>
Embperl doesn't need them before the fixup phase, but sometimes you want
different values for the environ
On Sun, 8 Jul 2001, Ged Haywood wrote:
> Hi there,
>
> On Fri, 6 Jul 2001, Knox, Laurie A, NPONS wrote:
>
> >I read somewhere that there were potential problems when running
> >mod_perl and PHP together in Apache, but I haven't been able to find
> >that info again Is this an issue?
>
> I
On Tue, 3 Jul 2001, James G Smith wrote:
> The current code I have uses %INC, but I wanted to write
> something like the following:
>
> sub use : immediate {
> # do stuff here if logging
> return CORE::use(@_);
> }
you could just override CORE::GLOBAL::require. you don't need to
override
On Mon, 9 Jul 2001, Robin Berjon wrote:
> cfg = (axkit_dir_config *)
> ap_get_module_config(s->module_config, &XS_AxKit);
try s->lookup_defaults instead of s->module_config
see also: modperl-2.0/src/modules/perl/modperl_pcw.c
where you can see howto access all of the config apache has
On Mon, 9 Jul 2001, Christian Gilmore wrote:
> Doug,
>
> I didn't see in the announcement that the below fix is included in
> 1.25_01. Can you please confirm?
the patch has not been committed and will probably wait until after
1.26. i'm concerned that the current patch might introduce bugs
els
this patch should fix the problem. you should also be able to
s/PerlSetEnv/SetEnv/g, unless Embperl needs these variables before the
fixup phase.
Index: src/modules/perl/mod_perl.c
===
RCS file: /home/cvs/modperl/src/modules/perl/mo
On Mon, 9 Jul 2001, Wayne Earl wrote:
> A client's webserver appears to have both mod_perl and cgi configured for
> a single machine. The httpd.conf file contains the following:
>
>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options ExecCGI
>
>
> A little later in the file, this
A client's webserver appears to have both mod_perl and cgi configured for
a single machine. The httpd.conf file contains the following:
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
A little later in the file, this is found:
AddHandler cgi-script .cgi
Is the handler fir
> FWIW, Greg McCarroll is writing an article for perl.com on a short
> comparison of templating systems, and of course we'll have a talk on
> the subject at TPC by Perrin.
Ahhh, 'short'. But that's another problem. I realize such articles are hard work, but
(especially for those of us struggling
hi there ,
I encoutred a problem with ASP.pm (ver.2.17) and multipart form what is
happening is that when I try to use "file" fields I get something like this
into the log
[Mon Jul 9 23:20:22 2001] [error] [client 192.168.0.5] Invalid method in
request -7d11b8668d066
[EMAIL PROTECTED] (Thomas Bach) wrote:
>At 11:17 09/07/01 -0500, you wrote:
>>If you want to directly send a file, use:
>>
>>open(DATEI, ...)
>>$r->send_fd(DATEI)
>>close(DATEI)
>>
>>You can do an internal redirect using subrequests, if you want. See
>>$r->lookup_uri().
>
>what kind o
> What is needed, IMHO, is a clear
> framework,/description/phlogeny/geneology of perl templating systems.
I'm writing such a beast for TPC this month, and will publish it when it's
ready. I'm not covering every templating module on CPAN though, just the
ones that people seem to actually use bas
Dave Hodgkinson <[EMAIL PROTECTED]> said something to this effect on 07/09/2001:
> Paul <[EMAIL PROTECTED]> writes:
>
> > Just use it in your handlers normally. It'll only be included once per
> > process, . . . right?
>
> Put it in startup.pl and it'll get mostly shared too!
Is that anything l
--- Kevin Schroeder <[EMAIL PROTECTED]> wrote:
> For the complex programs on the site I'm building I will be using
> CGI.pm, but there are a few parts of the site where there is little
> browser-server interaction other than to send a certain page based on
> the query string and a cookie. Becaus
There's Apache::Request, which is the equivalent of CGI.pm in the areas
of form submissions and Apache::Cookie for cookie handling. If you're
not using the HTML rendering capabilities of CGI.pm, you may look into
those two.
--Alex
Kevin Schroeder wrote:
>
> Hello,
> I've been using the CG
Ron Pero sent the following bits through the ether:
> Don't give up. What is needed, IMHO, is a clear
> framework,/description/phlogeny/geneology of perl templating systems.
FWIW, Greg McCarroll is writing an article for perl.com on a short
comparison of templating systems, and of course we'll h
Take a look at http://perl.apache.org/guide/ and read the stuff on libapreq.
- Perrin
Hello people:
Is there a book anyone would recommend for apache::ASP programming,
preferably something in the beginner section. thanx!
Paul <[EMAIL PROTECTED]> writes:
> Just use it in your handlers normally. It'll only be included once per
> process, . . . right?
Put it in startup.pl and it'll get mostly shared too!
--
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star
On Mon, 9 Jul 2001, Kevin Schroeder wrote:
> Date: Mon, 9 Jul 2001 15:02:12 -0500
> From: Kevin Schroeder <[EMAIL PROTECTED]>
> To: modperl <[EMAIL PROTECTED]>
> Subject: CGI module or Apache
>
> Hello,
> I've been using the CGI PERL module for a while now and I like
> using it a lot. Bu
For the complex programs on the site I'm building I will be using
CGI.pm, but there are a few parts of the site where there is little
browser-server interaction other than to send a certain page based on the
query string and a cookie. Because these pages get refreshed a lot I'm
thinking that
At 01:01 AM 07/08/01 -0400, Perrin Harkins wrote:
>> The latter gives you the ability to develop custom tag modules to
>> encapsulate complex server-side behaviors and business rules into simple
>> XML-like elements that content developers can use.
>> PSP shares the same basic elements with JSP...
--- Kevin Schroeder <[EMAIL PROTECTED]> wrote:
> Hello,
> I've been using the CGI PERL module for a while now and I like
> using it a lot. But I was wondering if using that module with
> mod_perl will slow things down because of the extra module being
> used. If so, is there a way to use th
Hello,
I've been using the CGI PERL
module for a while now and I like using it a lot. But I was wondering if
using that module with mod_perl will slow things down because of the extra
module being used. If so, is there a way to use the Apache API and
mod_perl to deal with form submissi
On Monday 09 July 2001 19:38, Robin Berjon wrote:
> On Monday 09 July 2001 18:09, Geoffrey Young wrote:
> > > From: Robin Berjon [mailto:[EMAIL PROTECTED]]
> > > In order to access the configuration, I'm using (in a nutshell):
> > >
> > > cfg = (axkit_dir_config *)
> > > ap_get_module_conf
On Monday 09 July 2001 20:19, Gerald Richter wrote:
> > to clarify what i mean by 'simple':
> > - trivial to install and to use
>
> That's important
Tough some are easy to use and hard to install :) The latter is less
important imho, when a module is hard to install it's usually justified
someh
>
> to clarify what i mean by 'simple':
> - trivial to install and to use
That's important
> - small disk footprint
> < 10 modules total. preferably 1
disks are cheap, so it doesn't matter if you take one or two MB
> - small memory footprint
> this is usually the first bottleneck i see wit
> I think that CGI::FastTemplate does all of that.
> Please have a look at it, and see if everything you need is not
> already in it.
It's a good module for CGI, since it doesn't rely on caching/compiling
techniques, just simple regex stuff. It will use a lot less RAM than tools
that compile in-
> /usr/bin/pod2man: Invalid man page - 1st pod line is not NAME in
IntroD.pod
> Couldn't install blib/man3/HTML::Embperl::IntroD.3
That are only warnings about the docs, but
perldoc foo
for example
perldoc HTML::Embperl::IntroD
will still work. So nothing to worry about. I try to fix this in
ivan wrote:
>
> hi,
>
> How can I access the current script name-table from module.
> I'm currently using :
> $main::XXX = "123";
>
> Then in the script :
>
> print $XXX;
>
> but this access the ASP %main not the script %main
There is an Apache::ASP mailing list for discussing
these things
On Monday 09 July 2001 18:09, Geoffrey Young wrote:
> > From: Robin Berjon [mailto:[EMAIL PROTECTED]]
> > In order to access the configuration, I'm using (in a nutshell):
> >
> > cfg = (axkit_dir_config *)
> > ap_get_module_config(s->module_config, &XS_AxKit);
>
> I only just skimmed the s
As far as I know, it does not exist now, but I believe it WILL be possible
with Apache 2.0/mod_perl 2.
Issac
- Original Message -
From: "Miroslav Madzarevic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 19:02
Subject: switch user id
>
> As you know, apache
On Mon, Jul 09, 2001 at 12:00:58PM -0400, [EMAIL PROTECTED] took time to write:
> to clarify what i mean by 'simple':
> - trivial to install and to use
> - small disk footprint
> < 10 modules total. preferably 1
> - small memory footprint
> this is usually the first bottleneck i see with
> m
As you know, apache runs as nobody.nogroup so these are the files I'm
allowed to access.
I wish to access files owned by otheruser.othergroup. How can I do this
under mod_perl (mason) ?
Is there a thing I can use to change my current uid so I can read the file
or directory I don't own ?
I don't
>hi, i'm sure many of us have had situations like this,
>but that doesn't mean that everyone who wants to do
>some templating is going to fall into the same trap
>every time.
The problem is that not every feature comes off looking like a trap.
>- trivial to install and to use
It's rare that I
Doug,
I didn't see in the announcement that the below fix is included in
1.25_01. Can you please confirm?
Regards,
Christian
> -Original Message-
> From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 15, 2000 7:59 PM
> To: [EMAIL PROTECTED]
> Cc: 'Modperl Mailing Li
[EMAIL PROTECTED] (Thomas Bach) wrote:
>perhaps it is off-topic (sorry for that, but i hope that somebody of you
>can help me), but somehow i wish to have a solution with precompiled perl
>such as mod_perl or ... everything else which fits to my needs.
>
>I want to filter every access of for exa
Hi,
After "upgrading" my installation to Apache-1.3.20 and mod_perl-1.25 as
as a module I can't start apache anymore when httpd.conf contains:
PerlRequire /etc/apache/perl/handler.pl
And that file (for debugging purposes) is practically empty:
#!/usr/bin/perl
package HT
> -Original Message-
> From: Robin Berjon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Accessing server config during parent startup
>
>
> Hi,
>
> I'm having trouble trying to access server config directives
> during parent
> s
hi, i'm sure many of us have had situations like this,
but that doesn't mean that everyone who wants to do
some templating is going to fall into the same trap
every time.
to clarify what i mean by 'simple':
- trivial to install and to use
- small disk footprint
< 10 modules total. preferably 1
hi,
How can I access the current script name-table from module.
I'm currently using :
$main::XXX = "123";
Then in the script :
print $XXX;
but this access the ASP %main not the script %main
... Is there a way to access script "main" package and pull data there
I'm working with ASP.pm-mod_
Hi,
I'm having trouble trying to access server config directives during parent
startup. Basically, I've got a module which needs to access a configuration
directive in order to compile some non-Perl files to Perl while the server
starts and before children are created so that the code they gen
> >
> >
> > under bleed-perl (one week old compilation) (the rest is the same) there
> > are some problems: (perl build args are at the end of this post)
> >
> > $ ./t/TEST -v modules/cgi
> > fails to start the server, whereas
>
> 1.xx never did start the serve
All,
I've noticed some odd behavior (or maybe just
errant thinking on my part) concerning PerlInitHandler
and PerlSetEnv. While walking through the demo of
HTML::EmbperlObject, things were just not working as
advertised. This configuration:
PerlSetEnv EMBPERL_OBJECT_BASE base.htm
PerlSet
"Gerald Richter" <[EMAIL PROTECTED]> wrote:
> The third beta of Embperl 2.0 is now available from
> ftp://ftp.dev.ecos.de/pub/perl/embperl/HTML-Embperl-2.0b3.tar.gz
I got the following errors during make on Linux 2.2.12-20 (Red Hat 6.1):-
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/us
On Sat, 7 Jul 2001, Stas Bekman wrote:
> On Fri, 6 Jul 2001, Doug MacEachern wrote:
> all tests pass cleanly.
cool.
>
>
> under bleed-perl (one week old compilation) (the rest is the same) there
> are some problems: (perl build args are at the end of thi
On Fri, 6 Jul 2001, Ken Williams wrote:
> [EMAIL PROTECTED] (Doug MacEachern) wrote:
> >this is a 1.26 canidate, test reports most appreciated as always..
>
> I just tested on Darwin (Mac OS X) with Apache 1.3.20 and using a simple
> 'perl Makefile.PL EVERYTHING=1' . All tests pass, with no war
On Mon, 9 Jul 2001, Purcell, Scott wrote:
> Sorry to be confused, but I believe I did not create a global variable. In
> the code below that I showed, I used a my to localize the $tmp variable
> inside the for loop.?
>
> Anyway, I changed the simple code and added the use strict and use vars
> qw
> I've sent this email to Template-Toolkit mailing list... but there doesn't
> seem to be anyone, so I'm sending it here ...
Um, you did send it at 6:30PM on a Sunday (yesterday). Support on that list
is really good, but you can't expect everyone to be on the same schedule as
you.
> How can in
Hello list
perhaps it is off-topic (sorry for that, but i hope that somebody of you
can help me), but somehow i wish to have a solution with precompiled perl
such as mod_perl or ... everything else which fits to my needs.
I want to filter every access of for example all .jpg-files on my apache
Purcell, Scott <[EMAIL PROTECTED]> said something to this effect on 07/09/2001:
> Sorry to be confused, but I believe I did not create a global variable. In
> the code below that I showed, I used a my to localize the $tmp variable
> inside the for loop.?
>
> Anyway, I changed the simple code and
Sorry to be confused, but I believe I did not create a global variable. In
the code below that I showed, I used a my to localize the $tmp variable
inside the for loop.?
Anyway, I changed the simple code and added the use strict and use vars
qw($rand), but now I get no random activity at all. Each
On Mon, 9 Jul 2001, Surat Singh Bhati wrote:
> But all the .pl , including fast_(.*).pl are run by Apache::PerlRun handler
> Any solution to exclude the fast_(.*).pl in second expression?
Set the PerlRun handler as the default in httpd.conf, and write
your own translation handler:
package Apache
ivan <[EMAIL PROTECTED]> said something to this effect on 07/09/2001:
> ok I have two questions about TT, let me begin with the
> first one the easier ...
*snip*
> How can in the parent template distinguish between these two
> cases (if scalar place it, if file include it ). There is
> thi
Hi there,
On Mon, 9 Jul 2001, Surat Singh Bhati wrote:
[snip]
> But all the .pl , including fast_(.*).pl are run by Apache::PerlRun handler
[snip]
> Any solution to exclude the fast_(.*).pl in second expression?
Rename the files?
73,
Ged.
hi,
I've sent this email to Template-Toolkit mailing list... but there doesn't
seem to be anyone, so I'm sending it here ... Could anyone help me out with
these
ok I have two questions about TT, let me begin with the
first one the easier ...
I have the folowing situations I have a template like
61 matches
Mail list logo