use given layer name in mapnik xml
pass min/max to template
close bridge after one-off getTile