Replaces a URI template with the given value