Re: Template Engine
| From: | Tom Rogers | Date: | Sat, 15 May 2004 08:09:37 +0000 |
| Subject: | Re: Template Engine | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186284@lists.php.net to get a copy of this message | ||
Hi,
Saturday, May 15, 2004, 6:13:25 AM, you wrote:
GL> I was just wondering if anyone had any good advice or tutorials on
GL> building a simple template engine system. I am woking on a small project
GL> that I would like to distribute, and I would of course like to separate
GL> logic from html. I really just want to know the basics without caching.
GL> I am familiar with Smarty and PHPLib and FastTemplate and some others.
GL> But since I am going to be distributing the app, I would like it as
GL> portable and small/simple as possible. Those template systems are
GL> overkill for what I need. Really it does not even have to be a "Template
GL> system", I would just like to here your thoughts on how you may have
GL> accomplished separation of logic from output in a simple way.
GL> Thanks,
GL> George
You can take a look at my 'system', its small (I use it in an
auto-prepend file) and pretty fast. You can view the code here
http://kwiktemplates.com/download.php and the
syntax is here
http://kwiktemplates.com/ (still working on the site)
Anything you
don't understand drop me a line.
--
regards,
Tom