smarty coding style