I\'m thinking of switching from using PHP to Python for web applications, but I was wondering if Python is as adept as weaving in and out of HTML as PHP is. Essentially, I find
If you were to progress onto a MVC web framework, you would find that actually both PHP and Python use HTML in a similar way.
The work around the request is done in the controllers, using the model for grabbing data. The results are then posted to a view, which is in effect a template of HTML.
You can have a well layed out HTML file as a view and your controller will simply tell it what to populate itself with.
In PHP this is often done with the alternative PHP syntax.