Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.333 kB
database mydb {
int /counter = 0;
}
function action(_) {
/mydb/counter <- /mydb/counter + 1;
#msg = <>Hello, user number {/mydb/counter}!</>;
}
function page() {
<h1 onclick={action}>Hello, world</h1>
<div id="msg">Click the header</div>;
}
Server.start(
Server.http,
{ ~page, title: "Hello, world" }
);
Jump to Line
Something went wrong with that request. Please try again.