You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Carl Eklof <ca...@yahoo.com> on 2005/09/29 21:09:02 UTC
Newbie can't turn off html processing in Embperl 2.0
Hello,
I'm new to Embperl, and certainly to this list, so
pardon me if this question is silly or if it is not
structured as a proper request for help. I am pretty
experienced with mod_perl however, which is why my
goal is to turn-off almost all Embperl logic, except
for the parsing of [* *] blocks.
I've been using Embperl 2.0.0 for two days, and it has
been running pretty well. The main problem(s) I've
been having have been because I can't seem to turn off
the HTML processing. There have been lot's of problems
related to that, such as having to add a comment
between any [* *] code block, that is followed by a
<table> tag (Embperl parses the page incorrectly
otherwise, which can cause very bad problems)
According to the docs setting EMBPERL_OPTIONS to 512
"optDisableHtmlScan" should "disable html scan" but it
doesn't seem to be working because I can get errors
from Embperl about things like:
[6392]ERR: 49: blah.epl(57): Endtag '/tr' doesn't
match starttag 'table'
I've inlined the relevent section of my httpd.conf
below.
Any ideas/help/support/empathy would be greatly
appreciated :)
-Carl
# Include the Embperl shared library
LoadModule embperl_module <path-to>/Embperl.so
PerlRequire Embperl.pm
# Turn on Embperl Environment
Embperl_UseEnv on
EMBPERL_LOG
/home/carl/projects/GOB/third-party/apache/logs/embperl_log
EMBPERL_SESSION_HANDLER_CLASS no
EMBPERL_OPTIONS 528
# Add 524288 for optKeepSrcInMemory (don't re-read
from disk)
EMBPERL_ESCMODE 0
EMBPERL_DEBUG 0
<Directory /home/carl/projects/GOB/uis/beethere>
AllowOverride None
<FilesMatch ".*\.html$">
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI
</FilesMatch>
</Directory>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Newbie can't turn off html processing in Embperl 2.0
Posted by Gerald Richter <ri...@ecos.de>.
>
> According to the docs setting EMBPERL_OPTIONS to 512
> "optDisableHtmlScan" should "disable html scan" but it
> doesn't seem to be working because I can get errors from
> Embperl about things like:
>
This was Embperl 1.
For Embperl 2 use
Embperl_Syntax EmbperlBlocks
In your httpd.conf or
[$ syntax EmbperlBlocks $]
Inside a page (you can switch back, also multiple times, with [$ syntax
Embperl $])
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org