Here's an addon for the Smarty Template engine I updated to work with newer PHP's. Some people may find it useful (or not).