Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created March 4, 2012 17:54
Show Gist options
  • Save pedrofaria/1974140 to your computer and use it in GitHub Desktop.
Save pedrofaria/1974140 to your computer and use it in GitHub Desktop.
#!/Users/eu/src/clever/clever
import std;
import 'cleverfw.clv' as fw;
Map<String, Function<Int>> routesGet;
routesGet.insert("^sign_up$", Int () {
println("PLEASE, SIGN UP NOW!");
return 1;
});
routesGet.insert("^$", Int () {
println('WELCOME! <a href="index.clv?q=sign_up">Sign Up</a>');
return 1;
});
fw::registerGet(routesGet);
fw::run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment