1, "secret" => "no", "page_title" => "Account"]; function render(): string { global $routerConfig; ob_start(); if (isLoggedIn()) { echo file_get_contents($routerConfig["template_dir"] . "dashboard.html"); } else { echo file_get_contents($routerConfig["template_dir"] . "login.html"); } return ob_get_clean(); } return ["output" => render(), "parameters" => $page_parameters];