Convert readTemplate and readPartial to asynchronous operation