Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Dynamically Typed:
Savant Template Engine
Jul 27, 2005 @ 11:22:32

Dynamically Typed has a new post today with a look at one of the more popular templating engines in PHP - Savant2.

When we (as in my business partner and I) started developing the third version of our open source program (our first ever 'commercial' product), Olate Download, we had to decide how we were going to handle templates to allow the user to customise their site. Looking back at our engine now, it does its job, but it is limited.

I had recently read an article in PHP Magazine about an engine called Savant2. After playing around, I decided that this time, I didn't want to create my own system, but I would use Savant to power the template system.

He talks about the inevitable comparison, looking at the features of both Savant2 and Smarty and comparing/contrasting them. He gives a little sample script and template from Savant2 to give you an idea of what it's like, and includes a bit on Savant2's plugins and filters...

tagged:

Link:


Trending Topics: