I would try wrapping you're a tag in base.epl with these tags:

[$ syntax EmbperlBlocks $]

So it would look like:

<div id="upperband">
                [$ syntax EmbperlBlocks $]
                <a href="/" class="noborder"> [-
Execute('upperband.epl'); -]</a>
                [$ syntax EmbperlBlocks $]
        </div>

And no, white space for Embperl is like...messy.

-----Original Message-----
From: Jean-Christophe Boggio [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2008 1:42 AM
To: embperl@perl.apache.org
Subject: Stop embperl from messing with my code

Hello,

I have really strange behaviours in my generated pages and I suspect
embperl to be "modifying" my html. I'd like to prevent this.

The case is this (I use Embperl Object) :

base.epl:
        <div id="upperband">
                <a href="/" class="noborder"> [-
Execute('upperband.epl'); -]</a>
        </div>

upperband.epl:
        <img src="/img/upperband_home.png" class="noborder" />

subdir/upperband.epl:
        <img src="/img/upperband_subdir.png" class="noborder" />


As you see, I want a different image in the upper band depending on
where the
user is.

The problem lies in base.epl : immediately after the <a href="/"
class="noborder">
and before the [- Execute... -]

* If I leave the space, I get... a (vertical) space after the block.
* If I remove the space, the generated code is this :

<a href="/"  class="noborder"<img src="/img/upperband_home.png"
class="noborder" />
 ></a>

So my "<a ...>" tag is broken and I see the ">" character.


Also, I take the care of having only one space between 'href="/"' and
'class=...'
and I'd like embperl not to add useless spaces. On a big page with lots
of tags
it becomes significant.


Is there a way to disable embperl's reinterpretation of the HTML code ?
I never
use the auto-table-like features.

Thanks,

-- 
Jean-Christophe Boggio                       -o)
[EMAIL PROTECTED]                       /\\
Independant Consultant and Developer        _\_V

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


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

Reply via email to