Yikes!
How about just brackets/braces to start. <g>
HTML is inherently ugly in source form, so I can deal with braces. But let's not add complexity here. The braces solve the problem, which is whitespace affecting the interpreter.
Jay
> Chuck Esterbrook wrote:
>
> > <%
> > if x is None:
> > x > > %>
> > <% end %>
> > <%
> > else:
> > x > > %>
> > <% end %>
> >
> > Bleck.
> >
> > -Chuck
>
> No need to enclose the "end" in <%%>. I would write it:
>
> <%
> if x is None:
> x > end
> else:
> x > end
> %>
>
> But even better, let's treat else, elif, except, finally, and other such keywords
> as though they end a block just as end does. This becomes:
>
> <%
> if x is None:
> x > else:
> x > end
> %>
>
> Almost looks like straight Python.
>
> --
>
>
> - Geoff Talvola
> Parlance Corporation
> gtalvola@...
>
>
>
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> http://lists.sourceforge.net/mailman/listinfo/webware-discuss
>
---------------------------------------------------
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope - http://www.zope.org
|