> this was probably discussed previously, but why wasn't an xml definition
> not used ie:
>
> <?perl
>   # perl code here
> ?>
>
> I dunno... [- -] and [$ $] seemed a little wierd to me... i'm not on the
> mailing list but if you have a response e-mail me directly...
>
> otherwise, this stuff looks pretty cool!
>

When I started Embperl, nobody talked about XML (at least nobody outside the
XML working groups). The reason why I choosen to use [- -] etc. is, that
designer should be able to use their favorite high level html editor. The
[- -] are taken just as normal text in this editors, so you can write
Embperl pages with them. Nowadays these editors are aware of for example ASP
syntax <% %> and such things, but this wasn't the case when Embperl was
born. Another reason is, that you can embed a [+ +] inside a html/xml tag,
but xml tags like <? ?>could not be nested (at least not without violating
the xml specification).

As you guess right this question has come up several times over the time,
that's one reason why Embperl 2.0 has a configurable parser. The whole
syntax is defined in Embperl/Syntax.pm, so it could be altered to fit each
ones personal needs. The next beta (b2) will contain an API along with some
examples, how to create a custom syntax. So if you prefer to use <? ?>, you
could simply create a few lines of syntaxdefinition, and it works...

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 925131
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