$app->get( '/article', function () use ($app) {
$articles = Model::factory('Article')->order_by_desc('id')->limit(2)->find_many();
return $app->render('home.html', array('articles'=>$articles));
})->name('home');
$app->get( '/article', function () use ($app) {
$factories = shuffle(['Article', 'Book']);
$factory = array_shift($factories);
$items = Model::factory($factory)->order_by_desc('id')->limit(2)->find_many();
$factory = strtolower($factory);
return $app->render('home.html', array("{$factory}s"=>$items));
...