Savant3: Simple Templating for PHP5

The Savant folks have a development version of their template system for PHP5. Savant doesn’t put a template language on top of PHP, instead, the templates are written in PHP and evaluated by Savant. Savant also likes objects, you can pass them directly into a template, unlike Smarty’s preference for arrays.

The new version of Savant takes advantage of PHP5’s improved object support so you can call plugin classes directly:

$this->-pluginname (...)

instead of:

$this->-plugins ('pluginname', ...)

I installed it on my PowerBook tonight, and played with it. You’ll need to fiddle with your existing Savant2 templates to migrate. The authors renamed the dateformat plugin to date. And you need to change any plugin calls to the new syntax.

More like this: .