DenkzeitWiki

Suchen:

Aktuelle Änderungen Printable View Änderungen Bearbeiten

PythonWindowsProgramming > Python > PythonSprache > PythonDoctest > PythonEggs > PythonEvangelism > PythonExecutables > PythonExif > PythonFunctionAnnotations > PythonHacks > PythonHacking > PythonIDE > PythonIDEs > PythonIdioms > PythonImageLibrary > PythonInTheEnterprise > PythonServerPagesClear Trail
Main /

Python Server Pages

ModPython

Inlining Python in HTML is a subject of some controversy. Some people consider code inside HTML a bad programming practice, since it utterly violates the Model-View-Controller paradigm by placing the application logic inside the presentation layer. (I am inclined to agree with this, but as you will see later on, there are ways to use PSP that actually comply with the MVC model.)

Most *SP's only support the mode of operation where the code is inlined in a web page referred to in the URL. As I mentioned above, this is not the best programming practice because it places the application logic inside the presentation component. Mod_python PSP can also work as a flexible templating system from within Python code. I advocate this method of using PSP because it allows for a clean programming style, separating presentation from logic.



Edit - BackLinks - Tags - Page Hist - Print - Changes - Home - Orphans - Help

Zuletzt geändert am 26.02.2006 09:53 Uhr und seit 7. April 2005 1115 aufgerufen.