|
Re: Which Part of "No XML" Don't You Understand?
|
Posted: Jan 31, 2006 11:30 AM
|
|
XML is not a panacea and an HTTP handler should also be able to produce something else than XML (like JSON, HTML, SVG, etc), we can all agree on that.
But Python web developers cannot and probably will not agree on a standard server-side template language. Because each tend to either specialize to a specific problem domain. And those that do not tend to be perform slowly.
Although I understand that bundling presentation and function into a single template "page" has very practical benefits, turning Python into some form of slow PHP is not precisely my idea of a productive and performant Python web development framework.
For ambitious web application developers, there are greater rewards if you separate logic from presentation. Then you may dump XML (or JSON, HTML, etc ...) directly:
print '<rest/>'
and use XSLT, JavaScript or whatever standard response transformation interface is available on the application's client.
This is as fast as serialization of a web response will get on the server, it saves bandwith and helps to distribute a significant part of the application on the clients.
Actually, given the availability of XSLT and the capabilities of JavaScript in modern browsers, I wonder which part of "No Templates" Python web developpers don't understand.
Kind Regards,
|
|