Skip to content

Instantly share code, notes, and snippets.

@igorw
Created March 11, 2011 20:59
Show Gist options
  • Save igorw/866572 to your computer and use it in GitHub Desktop.
Save igorw/866572 to your computer and use it in GitHub Desktop.
<?php
require __DIR__.'/silex.phar';
use Silex\Framework;
$app = new Framework();
$app->get('/hello.{_format}', function($_format) use ($twig) {
$template = $twig->loadTemplate("hello.$_format.twig");
return $template->render(array());
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment