Created
May 30, 2011 09:56
-
-
Save Yoric/998663 to your computer and use it in GitHub Desktop.
Variant on Hello, Web JS-style
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
/** | |
* 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