Created
June 12, 2011 14:29
-
-
Save francescoagati/1021603 to your computer and use it in GitHub Desktop.
usin pharen lisp compiling in php with slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require "Slim/Slim.php") | |
(:: Slim (init)) | |
(fn hello (name) (echo (. "Hello, " name)) "") | |
(:: Slim (get "/hello/:name" "hello")) | |
(:: Slim (run)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('/Users/Francesco/Downloads/Scriptor-pharen-aea8dc4/lang.php'); | |
Lexical::$scopes['bindings'] = array(); | |
require("Slim/Slim.php"); | |
Slim::init(); | |
Slim::get("/hello/:name", "hello"); | |
function hello($name){ | |
echo(("Hello, " . $name)); | |
return ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment