Allow specifying template and partial locations.