Add the ability to pass simple variables in the route for views. Sometimes we derive a route from a template where we want to pass a title or fixed variable, but it's not possible.
An example of how this would be used:
PHP Code:
$routes->view('/', 'login', ['title' => 'Login', 'message' => 'Welcome to login']);
What for? You think only to yourself) Routes are not always used for HTTP, there is a CLI. The functionality will not be shared. Better apply the parameters in the controller, filter, and view decorator...