initial commit

This commit is contained in:
2010-01-12 19:36:01 +02:00
commit 43a7bae14a
7 changed files with 268 additions and 0 deletions

16
app/app.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
class App {
function call (&$env) {
if ( $env["PATH_INFO"] == "/" ) {
return array(200, array("Content-Type" => "text/html"), array("Welcome Home"));
} elseif ( preg_match("/^\/about\/?/i", $env["PATH_INFO"]) ) {
return array(200, array("Content-Type" => "text/html"), array("Rack-style middleware is cool."));
}
return Rack::not_found();
}
}
?>