[Zope3-dev] Re: Inline code

Tonico Strasser contact_tonico at yahoo.de
Tue Feb 10 10:52:45 EST 2004


Shane Hathaway wrote:
> I'm surprised I received no response on this.  I'll help you guys start
> debating. :-)
> 
> Pros:
> 
> - You can write code inline.  It would replace the need for complex
> expressions.
> 
> - Unlike the current script tag, moving the inline code to a separate
> module is always straightforward.  Once it's in a separate module, you get
> all the manageability of Python modules.
> 
> - Unlike the current script tag, we don't have to manipulate print
> statements.  In fact, for the whole story to work, we might not allow
> print statements (except perhaps as a debugging tool.)
> 
> Cons:
> 
> - It's not like Javascript; there is no "document.write()" equivalent.  
> It's a lot more like CSS, since CSS styles apply to the whole document 
> regardless of what part of the document defines them.
> 
> Hmm, I can't think of any more cons. :-)  This seems like a big win 
> overall.  Maybe we could try this in Zope 2 first.

I'm a scripter, I like it. I'm dealing a lot with ugly expressions in ZPT.

Tonico




More information about the Zope3-dev mailing list