|
Re[2]: Webware vs. PHP - performance comparision!: msg#00036python.cheetah
W środa 15 października 2003 o godz. 20:18:08 webware-discuss=jeNNPLQjpyVg9hUCZPvPmw@xxxxxxxxxxxxxxxx <webware-discuss@xxxxxxxxxxxx> napisał(a): > The code you included is not representative. Why? It *is* representative. PSP is not Python. It is obvious. You should first read what PSP really is: "A Python Server Page (or PSP) is an HTML document with interspersed Python instructions that are interpreted to generate dynamic content. PSP is analogous to PHP, Microsoft's ASP and Sun's JSP." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ http://webware.sourceforge.net/Webware-0.8.1/PSP/Docs/index.html RTFM first, respond next. > Cheetah more resembles PHP than Python does. And PSP much more resembles PHP than Cheetah does. :) Cheetah is only a simple template language exactly like PSP. None of them is a full general purpose language like Python, Java, C+ etc. If you do not believe me, believe the PSP manual: "Features of PSP include: -Familiar Syntax (ASP, JSP, PHP)" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... "The general process for creating PSP files is similar to creating an HTML page. Simply create a standard HTML page, interspersed with the special PSP tags that your needs require" http://webware.sourceforge.net/Webware-0.8.1/PSP/Docs/UsersGuide.html >>> for author in authors: >>> self.write(author.person) >>> if author != authors[-1]: >>> self.write(', ') > No. The above code was PSP. No, it is the Python servlet. It migth have nothing to do with PSP and it's HTML'ed tags. PSP is a specific TEMPLATE language. Exactly like Cheetah, Webmacro, Smarty, etc. PSP is NOT Python. Python has no <%=blah%> syntax. I am using all the time the syntax you wrote for my serwlets. The difference is I do not use directly write('<html>...') because logic layer should not be mixed with presentation layer. You are using python servlets (OK, it's your choice) and you call them PSP (but they are *not* PSP, because PSP is a template language embeded in HTML). >> Cheetah is not limited (like PSP or PHP) to HTML. HTML-style tags >> are hard to distinguish from real HTML tags, HTML-style tags are >> not visible in rendered HTML when something goes wrong, HTML-style >> tags often lead to invalid HTML (e.g., <img >> src="<template-directive>">), Cheetah tags are less verbose and >> easier to understand than HTML-style tags, and HTML-style tags >> aren't compatible with most WYSIWYG editors. Cheetah is also more >> powerfull, because it has it's own simple yet powerfull caching >> system. PSP has nothing similar. > The Cheetah syntax is idiotic. Ha, ha, ha. Very persuasive reasoning. :D Where PSP with it's <%=blah%> is better? It has even worse documentation than Cheetah. PSP is very similar PHP (and Microsoft ASP!) syntax because PHP (and ASP!) can use tags <%...%>. -- JZ ICQ:6712522 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: complete example, Aaron Held |
|---|---|
| Next by Date: | webmaster@xxxxxxxxxxxxxxx, cd |
| Previous by Thread: | Re[2]: Webware vs. PHP - performance comparision!, Jarosław Zabiełło |
| Next by Thread: | Re: Webware vs. PHP - performance comparision!, JZ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |