On Wednesday, 24 April 2013 11:42:41 UTC-3, sirajul muneer wrote: > > Thank you thomas. I can read the PHP code. The thing is I'm new to webpy > and Python web application development. I can easily convert PHP functions > and classes easily to python. I needed to know whether any measures or > precautions need be taken to convert mod_php to WSGI application. any > common pitfalls or something like that. There is a little issue I felt > since PHP can easily embed HTML but python doesnt allow it... I'm bit > confused on hoew to template on such situations as i've many PHP files > embedded with HTML > > > On Tuesday, 23 April 2013 01:42:51 UTC+5:30, Tomas Schertel wrote: >> >> IMHO there is no "recipe" to get this done without work. >> You have to read your PHP code, understand what it does, and write your >> python code to do the same. >> If you can read PHP code and knows how to write python code, consider it >> done. >> :) >> >> On Sunday, 21 April 2013 11:57:04 UTC-3, sirajul muneer wrote: >>> >>> I'm currently working on a PHP project to create a web based code >>> editor. It includes many PHP files. I'm now planning to convert them into >>> python code to make it run on web.py( a minimalistic Python web framework). >>> Web.py is almost straight forward python. I want to know how complex it >>> would be to convert the files to Python application and make it work as >>> expected. If possible can anyone give a few bare guidelines to follow to >>> systematically do the process. >> >> I see. But using templates is easy. Basically you will create an HTML file like you do with PHP. But instead of embed python code, you will embed variables. Then, call these templates passing variables values to it. This is a raw view. :)
Take some time to read templator's page [1] to see how things work. [1] - http://webpy.org/docs/0.3/templetor PS: you can also use jinja, mako or cheetah. -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
