Ecology by Template