Div PHP Ways 2.4.0
New feature: passing data and args to rules.
<?php
ways::rule('is-admin-section', function($data, $args){
return $args['section'] === 'admin';
});
ways::listen("/{section}/login", function(){
echo "admin login";
}, ['rules' => ['is-admin-section']]);