runs a pass at translating smarty templates back to php