You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Frerk Meyer <fm...@channel-one.de> on 2000/03/23 10:35:55 UTC

[- vs <% vs
I propose to rethink the syntax of the brakets of Embperl.
My reason is:

We have massive problems with Embperl and Adobe Golive 4,
one of those WYSIWYG-Editors and a common one too.

In the older days [- seemed to be a good choice,
since WYSIWYG-Editors didn't knew any Server-Side-Scripting
language. So the choices were:

[-      any content text
<% / <? unknown tags
<!--#   pseudo HTML comments

Nowadays editors know of some special tags, as they
are MS-ASP in GoLive, HomeSite, Frontpage and maybe
others or <?foobar argument="value" ?> in XML-
oriented editors (<? are processing instructions
for the parsers, so this is excatly what the syntax should
be in a world moving fast towards XHTML.)

I would suggest an alternative syntax for Embperl like
<%- being the same as [- and so on just to keep
our HTML-pages safe after they are worked on by
the graphics department.

Comments welcome,
-- 
Frerk Meyer  mailto:fm@channel-one.de
Channel.One  http://www.channel-one.de

Re: [- vs <% vs Posted by Gerald Richter <ri...@ecos.de>.
>
> I would suggest an alternative syntax for Embperl like
> <%- being the same as [- and so on just to keep
> our HTML-pages safe after they are worked on by
> the graphics department.
>
Next version of Embperl give you the possibility to configure whatever
syntax you like. I hope to get a first beta out during april

Gerald



Re: [- vs <% vs Posted by Frerk Meyer <fm...@channel-one.de>.
Gerald Richter wrote:

> Question (so I can make the next version better): Embperl makes a lot
> efforts to work with the code these Highlevel HTML editor produces. For
> example our customers use MS Frontpage to edit pages which contains Perl
> blocks, and Embperl is still able to interpret them afterwards (e.g. it
> converts things like &lt; back to <).

Editors with support for ASP tags don't change the code at all. That is
the
point. So no action is required afterwards and designer won't see the
code, but only a replacement icon.

> What problems you exactly have when using [ .. ] blocks? Is it that the perl
> code is visible to the designers or is it that your editor breaks the perl
> code? If it breaks the perl code, what does it do to the code?

I've tested Dreamweaver, GoLive and Homesite. They do all ASP, some do
ColdfusionML, SSI or PHP. The best one was Dreamweaver, the worst
GoLive (only ASP). I couln't test Frontpage.
 
> Also consider code like <TR BGCOLOR=[+ $col +]> or even <TR [$ if $col
> $]BGCOLOR="#ffffff"[$endif$]>, how should this look with the new syntax?

<% is like [- and
<%= is like [+
Example:
<TR BGCOLOR="<%= $col %>">  (The editors I tested had no problem with
double
closing tags as long as they use '%>'
The other example was given in a previous posting, I'm not an expert in
ASP syntax.

> More comments on this topic would be very helpfull! Anything you say now has
> the chance to go into the next version...

I guess there is no need to make the syntax configurable to any sequence
of characters as brackets but just the popular ones with priority to ASP
because of my tests.

> Gerald
-- 
Frerk Meyer  mailto:fm@channel-one.de
Channel.One  http://www.channel-one.de

Re: [- vs <% vs Posted by Gerald Richter <ri...@ecos.de>.
>
> I have been forced to switch to Apache::ASP for just that reason -
> OK I know: I could have pre- and post-processed everything on the way
> in and out of the graphics tools - but thats just *too* much bother.
>
> Let's go as close to the established de-facto standards as possible.
>
Question (so I can make the next version better): Embperl makes a lot
efforts to work with the code these Highlevel HTML editor produces. For
example our customers use MS Frontpage to edit pages which contains Perl
blocks, and Embperl is still able to interpret them afterwards (e.g. it
converts things like &lt; back to <).

What problems you exactly have when using [ .. ] blocks? Is it that the perl
code is visible to the designers or is it that your editor breaks the perl
code? If it breaks the perl code, what does it do to the code?

Also consider code like <TR BGCOLOR=[+ $col +]> or even <TR [$ if $col
$]BGCOLOR="#ffffff"[$endif$]>, how should this look with the new syntax?

More comments on this topic would be very helpfull! Anything you say now has
the chance to go into the next version...

Gerald



Re: [- vs <% vs Posted by Henrik Tougaard <ht...@foa.dk>.
On Thu, 23 Mar 2000, Frerk Meyer wrote:

> I propose to rethink the syntax of the brakets of Embperl.
...
> 
> I would suggest an alternative syntax for Embperl like
> <%- being the same as [- and so on just to keep
> our HTML-pages safe after they are worked on by
> the graphics department.

Please YES!!!!

I have been forced to switch to Apache::ASP for just that reason -
OK I know: I could have pre- and post-processed everything on the way
in and out of the graphics tools - but thats just *too* much bother.

Let's go as close to the established de-facto standards as possible.

---
Henrik Tougaard    ht000@foa.dk
FOA Trade Union for Public employees Denmark.
#include <disclaim.std>