View Single Post
  #5   Spotlight this post!  
Unread 26-11-2004, 18:22
evulish's Avatar
evulish evulish is offline
1010100
AKA: Grant Harding
#0084 (WATTNESS (bot: Chuck))
Team Role: Alumni
 
Join Date: Jul 2002
Location: Towanda/Wysox, PA
Posts: 1,434
evulish is just really niceevulish is just really niceevulish is just really niceevulish is just really nice
Send a message via AIM to evulish
Re: PHP template engine

If you're looking for a very basic templating system, they're pretty simple to write. The one I wrote is about 30 lines of code. You basically load all your data you want to put into the template into an array, then load your template, and search and replace. I've never used one of the already-made ones but I hear a lot of talk about Smarty. Like Joel said, it's great if you keep it simple.
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)