Making a pass form cgi => webpy framework

Νίκος nikos at superhost.gr
Thu Jun 27 23:38:59 EDT 2013


Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε:
> On 27Jun2013 16:32, Νίκος <nikos at superhost.gr> wrote:
> | a) keep my existing Python cgi way that embed print ''' statements
> | within python code to displays mostly tables?
>
> I'd argue against this approach. Like hand constructing SQL, this
> is rife with opportunity to make syntax errors, either outright by
> mistyping HTML or accidentally by badly escaping content that is
> not supposed to be HTML but happens to contain HTML marker characters
> like "<".
>
> When I generate HTML I usually make a structure of lists and dicts
> that gets converted to HTML. Someone doing a nontrivial amount of
> HTML would use a templating system of some kind I imagine; I don't
> generate HTML very often.
>
> Pick a simple framework or templating engine and try it. I have no
> recommendations to make in this area myself.

Can you explain to me the difference of the former and latter?

-- 
What is now proved was at first only imagined!



More information about the Python-list mailing list