Skip to content

Instantly share code, notes, and snippets.

@francescoagati
Created June 12, 2011 14:29
Show Gist options
  • Save francescoagati/1021603 to your computer and use it in GitHub Desktop.
Save francescoagati/1021603 to your computer and use it in GitHub Desktop.
usin pharen lisp compiling in php with slim
(require "Slim/Slim.php")
(:: Slim (init))
(fn hello (name) (echo (. "Hello, " name)) "")
(:: Slim (get "/hello/:name" "hello"))
(:: Slim (run))
<?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