smarty3 cleanup of templates