On Thu, 28 Jan 2010, Leonardo M. Ramé wrote:

El jue, 28-01-2010 a las 13:37 -0200, Felipe Monteiro de Carvalho
escribió:
On Thu, Jan 28, 2010 at 11:22 AM, Graeme Geldenhuys
<[email protected]> wrote:
A matter of taste I guess. I use pure Object Pascal to write all our CGI
applications. Our CGI apps do things PHP, JavaScript etc can only dream of!
Not to mention I have the full RTL, lots of the FCL and other non-GUI
frameworks at my disposal - and execution speed is probably magnitudes
faster too.

Don't you get annoyed putting the HTML inside function calls? This is
what has put me off from cgi ... I usually have a lot more HTML then
code, so I actually would like to have a HTML document where I put
some Pascal inside, like PHP. With all my huge amount of HTML inside
function calls it get's very poluted and hard to read the HTML =(


You don't need to. Some CGI frameworks, like PowTils, allows you to use
Templates that reside apart from the CGI app, those templates are parsed
on the fly every time a request is made. Also you can let the CGI app to
produce JSON or XML to be parsed by the JavaScript Client's engine, like
ExtJs, JQuery and others.

The latter is what I'm doing now. I'll be committing some stuff to SVN soon.

Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to