Given a WMS service, is there a ready-made script that, for a given extent, creates a tile-pyramid that is compliant with:
http://leaflet.cloudmade.com/reference.html#tilelayer
That is urls on the form:
'http://{s}.somedomain.com/blabla/{z}/{x}/{y}.png'
EDIT: I think what I want is MapProxy. I can configure a TMS layer that caches my WMS service, and copy the files that it generates.