$html = '<html><head><script type="text/javascript">'; $html .= Modernizr::buildJs(); $html .= Modernizr::buildConvertJs($detector->getCookieId($_SERVER), '', true); $html .= '</script></head><body></body></html>'; return $response->getBody()->write($html); } /**/ $response->getBody()->write('Hello, world!'); $options = array('loader' => new Mustache_Loader_FilesystemLoader('src/templates'), 'partials_loader' => new Mustache_Loader_FilesystemLoader('src/templates/partials'), 'logger' => $errorLog); $next = ''; $previous = ''; if ($detector->whereFound() == 'archive') { $foundIn = " pulled from a profile already in the system that you asked to view. Because it's an archived profile the browser-side tests were not run."; $uaList = $detector->getUaList(); $i = 0; $oldkey = ''; foreach ($uaList as $key => $value) { if ($i == 1) { $next = $key; break; } if ($key == $ua->uaHash) { $previous = $oldkey; $i = 1; } $oldkey = $key; } } else { if ($detector->whereFound() == 'cookie') {