> The WYSIWYG editors don't break the perl-code (at least I haven't seen
> that (yet:), but the EmbPerl code breaks the wysiwyg. Especially if
> you have tables with reasonably complex perl-code in them.
> The formatting is all wierd, which does make it a bit pointles to use
> a visual tool to format the layout.
>
> Eg. Dreamweaver is able to represent any expression in <%..%> as a
> small icon letting the graphics designer do his job without my code
> interfering. DW is a good engough tool that it will leave whatever I
> put in the <%..%> alone, so I have not had use for the '&lt;' -> '>'
> conversion (we shy away from MS Frontpage because it changes things
> for apparently no good reason!).
>

Ok, for working in this way, I agree it would be really usefull to change to
<% etc.
The [+ etc. was basicly choosen, so you _don't_ get the small icons for your
perl code, because it was (the time I started Embperl) very hard to edit
them in this editors, because you had to go to lot of dialogs. Using [+ etc.
you can edit them as simple text, but of course you are totaly right that
this breaks the layout if the perl code inside gets to large.

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

Is there missing an closing '>' ?


> and
>   <TR <% if ($col) {%> BGCOLOR="#ffffff"<%}%>>
>
> I must have been using Apache::ASP too much ;-)
> But seriously: I do like the idea of using Perl syntax to control
> things. I haven't considered whether it would ruin EmbPerl or not...
>

For me it's harder to read, but this is a matter of taste. Of course using
the Perl control structures has adavtages.

In my plans for the next version, I like to improve also this area (you can
already do it with [* *], but it does not work under all conditions)

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