Source

Ray / index.php

Full commit
<?php

error_reporting(E_ALL | E_STRICT);

require_once 'Ray/Ray.php';
    
try{
    
    $app = new Ray\Ray(array(
        'view' => 'Ray\View\Mustache'
    ));
    
    $app->error(404, function(){
        return array(
            'action' => '404'
        );
    });
    
    $app->get('/', function(){
        return array(
            'action' => 'index'
        );
    });
    
    $app->get('/post/:id/', function($id=7){
        return array(
            'action' => 'post'
        );
    });
    
}catch(\Exception $e){
    echo '<pre>' . $e . '</pre>';
}