Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 19 lines (15 sloc) 0.333 kB
e075dbd @akoprow Adding database name
akoprow authored
1 database mydb {
2 int /counter = 0;
3 }
9fde1fb @akoprow Initial commit
akoprow authored
4
5 function action(_) {
1e2fa87 @akoprow Using new MLstate coding conventions.
akoprow authored
6 /mydb/counter <- /mydb/counter + 1;
7 #msg = <>Hello, user number {/mydb/counter}!</>;
9fde1fb @akoprow Initial commit
akoprow authored
8 }
9
10 function page() {
1e2fa87 @akoprow Using new MLstate coding conventions.
akoprow authored
11 <h1 onclick={action}>Hello, world</h1>
12 <div id="msg">Click the header</div>;
9fde1fb @akoprow Initial commit
akoprow authored
13 }
14
15 Server.start(
1e2fa87 @akoprow Using new MLstate coding conventions.
akoprow authored
16 Server.http,
17 { ~page, title: "Hello, world" }
18 );
Something went wrong with that request. Please try again.