Re: Play nice! Re: Savant/Flexy/Foo template engines
| From: | Paul M Jones | Date: | Thu, 10 Jun 2004 23:58:18 +0000 |
| Subject: | Re: Play nice! Re: Savant/Flexy/Foo template engines | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30455@lists.php.net to get a copy of this message | ||
Forgot to mention ...
Here's a quick example of how the "minimalist" one might work; Alan can post how his "core provides" might work, and we can compare from there. I'm very open to changes on this; it's not really in stone. <?php // data for the template $data = new StdClass; $data->text = 'xxxx';You can also use the Template class on its own without a compiler or pre-processor at all. $tpl =& new Template(); $tpl->setData('t', $data); $tpl->output(); -- Paul M. Jones Savant: the simple alternative to Smarty for PHP. http://phpsavant.com/ DB_Table: build RDBMS tables and XHTML forms in one PHP class. http://wiki.ciaweb.net/yawiki/index.php?area=DB_Table Yawiki: your collaborative online documentation system. http://yawiki.com/ Yawp: a single-file foundation for PHP applications. http://phpyawp.com/