Allow templates to be used with remote_directory resource