Skip to content

Instantly share code, notes, and snippets.

@Yoric
Created May 30, 2011 09:59
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/998667 to your computer and use it in GitHub Desktop.
Save Yoric/998667 to your computer and use it in GitHub Desktop.
Hello, web in Opa (revised syntax)
/**
* The function defining our user interface.
*/
def 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]
*/
server:
one_page_server("Hello", start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment