Add Smarty support