Skip to content

Instantly share code, notes, and snippets.

@Yoric
Created May 30, 2011 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yoric/998663 to your computer and use it in GitHub Desktop.
Save Yoric/998663 to your computer and use it in GitHub Desktop.
Variant on Hello, Web JS-style
/**
* The function defining our user interface.
*/
start = -> <>Hello, web!</> //HTML-like content. As the last value of the function, this is the result.
//Reduced syntax for trivial functions
/**
* Create and start a server delivering user interface [start]
*/
start_server(one_page_server("Hello", start))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment