Aktuelle Änderungen Printable View Änderungen Bearbeiten
PythonWindowsProgramming > Python > PythonSprache > PythonDoctest > PythonEggs > PythonEvangelism > PythonExecutables > PythonExif > PythonFunctionAnnotations > PythonHacks > PythonHacking > PythonIDE > PythonIDEs > PythonIdioms > PythonImageLibrary > PythonInTheEnterprise > PythonServerPagesClear TrailInlining 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.