Re: Adding Loop / If support to a simple template engine
| From: | James Williams | Date: | Thu, 07 Apr 2005 02:37:07 +0000 |
| Subject: | Re: Adding Loop / If support to a simple template engine | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212481@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Wed, April 6, 2005 7:04 pm, James Williams said:Hey fellas, I'm makin a forum right now and as a sub project, I'm making a template engine / class. Right now all it does is variable replacement, however I am curious as to how I can implement support for loops and if statements. I would appreciate any ideas that you may have, thank-you!You'll have to write a parser. Or use something like bison/flex/yacc to create one for you. This is not something you want to try to knock out in an afternoon because you're bored. :-) Thank-you, but what exactly does a parser do?