Support multiple resources in templates