Skip to content

Instantly share code, notes, and snippets.

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