Re: [fpc-pascal] Freepascal templating engines with logical structures

2014-09-22 Thread luciano de souza
Thank you. The options you had me done are very intersting. I want to show HTML grids and I intend to use a templating engine for this purpose. But, in stead of embed logics in the template, I think I need to organize better my code. Perhaps, I need to build a class THMLTable where I could set a

Re: [fpc-pascal] Freepascal templating engines with logical structures

2014-09-17 Thread leledumbo
What you seem to want is something php-like, to interpret commands from the html template. But that way the program logic and display template would not be separate. Right, even a simple for/if statement means there's logic in the template, which is not desirable. Template should serve as a

[fpc-pascal] Freepascal templating engines with logical structures

2014-09-16 Thread luciano de souza
Hello all, I Know two templating engines for Freepascal: FPTemplate e JTemplate. Both can be successfully used for html construction. But they presents the same aspect: only searches and replaces tags to values. Of course, it's crucial. But to show html grids, obtained from database queries, it