Hola,
I'm using PHPlib's template.inc to template my site ( dev site at http://www.dev.fcPremier.com ).
It's great for static content I'm pulling out of the db, but how can I build dynamic content and still use the template.
The templating class takes variables containing data (a story, or whatever) and parses it into any of a bunch of HTML templates that I've got. But PHP code that is included in those variables does not get parsed, it simply gets passed thru as straight text or HTML.
This is a problem, because templates are great for site maintainability and updatability, but only if you use the bloody things!
:-)
I'd prefer not to end up with a bunch of templated files and a bunch of applications that are not.
I've read the column here at PHPBuilder on PHPlib templating, and in it it says: "Another advantage of PHPLIB Template is it allows dynamic blocks to be nested, unlike FastTemplates."
Is that what I need?
How do I use it?
Thanks!
-john