Created
May 27, 2011 10:37
-
-
Save Yoric/995020 to your computer and use it in GitHub Desktop.
Hello, web in Opa (revised syntax)
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. | |
} | |
/** | |
* 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