pass a copy of apiInfo to the template, not the original object