Hi,
>
> My code tends to generate HTML, so I find myself writing this:
> [+ $escmode=0; $varName +] all the time.
>
> IMHO, this looks ugly, and will confuse the poor HTML coders I want to
> hire. I have been thinking that another embperl  directive that turns
> off escmode would be useful.  Something like [% $varName %] that would act
> as shortcut for [+ $escmode=0; $varName +].  Has this come up
> before?  What
> is the price (usability/readability/performance/etc) of another bracket
> escape sequence?
>

If you write the [- $escmode=0 -] it will turn off escaping until you reset
it to another value. If you want to change it for just one block, you must
say [+ local $escmode=0; $varName +]. If you need this $escmode = 0 in all
your pages, simply put a

PerlSetEnv EMBPERL_ESCMODE 0

in your httpd.conf. Is that what you are looking for?

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to