[Zope] ANNOUNCE: EXPERIMENTAL DTML Syntax change
Michael Bernstein
mbernstein@profitscape.net
Tue, 15 Jun 1999 12:24:27 -0700
Jim Fulton wrote:
>
> Zope 2.0.0 alpha 2 (and public CVS) includes an experimental change to the
> DTML parser to allow HTML tags syntax and character entity reference as
> an alternative to the server-side-include (SSI) syntax. Basically, source
> like:
>
> <!--#var standard_html_header-->
> <ul>
> <!--#in objectValues-->
> <li> <a href="<!--#var URL1-->/<!--#var id-->/manage_workspace">
> <!--#var title--></a>
> <!--#/in-->
> </ul>
> <!--#var standard_html_footer-->
>
> to be written as:
>
> <dtml-var standard_html_header>
> <ul>
> <dtml-in objectValues>
> <li> <a href="&dtml-URL1;/&dtml-id;/manage_workspace">
> <dtml-var title></a>
> <dtml-/in>
> </ul>
> <dtml-var standard_html_footer>
MUCH better! This is pretty much the way Allaire does it with CFML tags,
so teaching Homesite and dreamweaver to support/ignore these tags will
probably be a lot easier.
And thank you for removing the 'line noise'. You might (MIGHT) want to
consider requiring an enclosing '<dtml-eval>' tag around the environment
variables, though:
<li> <dtml-eval><a
href="&dtml-URL1;/&dtml-id;/manage_workspace"></dtml-eval>
Leaving them 'naked' doesn't feel right.
01 (just my two bits)
Michael Bernstein.