Python-like tabs instead of curley brackets?

Daniel Giddings dgiddings at bigworldtech.com
Thu Nov 30 15:01:31 PST 2006


I've not done any web programming presentation wise, except using Zope 
(a Python application server for building web apps). I can see where JSP 
style programming would be a problem with Python.

Zope takes the approach of using a templating language for seperating 
presentation with back end logic. It's a far better approach than 
embedding code into a web page. Your graphics designers can take the 
pages directly into dreamweaver / whatever and see sample values in the 
dynamic fields, and modify it without having to worry about broken html 
due to <% %>.

Zope Page Templates:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx

:-) Dan

Benji Smith wrote:
> Daniel Giddings wrote:
>> Get an editor that understands Python ;-) Most will either use 
>> whatever that code block uses, or highlight the problem indentation in 
>> bright red.
>>
>> Personally I much prefer the Python way of doing indentation, after 
>> all you indent your code anyway making the curly braces somewhat 
>> redundant (and I program about equally in C/C++ and Python).
> 
> I use Python occasionally, and the indentation requirements have never 
> bothered me.
> 
> But, from what I've heard, web programming is a huge pain in the ass 
> using Python. Embedding Python source in an HTML document (php/jsp 
> style) causes major pain, since whitespace matters within python blocks.
> 
> --benji



More information about the Digitalmars-d mailing list