perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Ghizaru <>
Subject Stary brackets in Embperl vs. EmbperlObject ?
Date Thu, 25 Jul 2002 21:15:54 GMT
Hello all!

First of all, here are the relating parts of my httpd.conf:
<IfModule mod_perl.c>
  PerlModule HTML::Embperl
  PerlSetEnv EMBPERL_FILESMATCH "\.html$"
  PerlSetEnv EMBPERL_DEBUG 9222
  # dbgMem + dbgEval + dbgAllCmds + dbgLogLink
  # disables pre-processing of perl code to remove HTML tags
  PerlSetEnv EMBPERL_OBJECT_BASE "template.html"
  PerlSetEnv EMBPERL_OBJECT_FALLBACK "fallback.html"
  <Files *.html>
    SetHandler perl-script
    PerlHandler HTML::EmbperlObject
    Options ExecCGI

(as an aside, it was never made clear wether PerlModule must be HTML::Embperl 
or EmbperlObject, if I wish to use EmbperlObject... I have noticed no 
difference in both cases)

This is template.html, just basic stuff:
[- Execute('*'); -]

And here is index.html:
<B>some bolded text in index.html</B>
[* foreach $i (1..10) { *]
        [+ $i +]
[* } *]

Now, if I set PerlHandler to HTML::Embperl and execute index.html, all works, 
except of course for the EmbperlObject functionality (i.e. template.html does 
not get called). Also works with

However, if I set httpd.conf as above (or with "PerlModule 
HTML::EmberlObject". Like I said, no difference), with PerlHandler 
HTML::EmbperlObject, template.html gets executed but index.html returns 
nothing, not even the part that falls outside the [* stary brackets *]...

If I use the metacommands dollar-brackets, though, all is fine. Problem is, 
however, that I unfortunately had the time to get used to PHP's way of 
interweaving with HTML with only one kind of delimiter and, moreover, I'd 
prefer to use clean Perl, so that I'd even drop EmbperlObject for simple 
Embperl if there's no solution.

Well, any feedback is appreciated. Thank you.
- Adrian

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message