Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.362 kB
d655de1 @samalba first commit
samalba authored
1 import stdlib.themes.bootstrap
2
3 database admin {
4 int /counter = 0;
5 }
6
7 function action(_) {
8 /admin/counter++;
9 #msg = <>Hello, user number {/admin/counter}!</>;
10 }
11
12 function page() {
13 <h1 class="well" onclick={action}>Hello, world</h1>
14 <div id="msg">Click the header</div>;
15 }
16
17 Server.start(
18 Server.http,
19 { ~page, title: "Hello, world" }
20 );
Something went wrong with that request. Please try again.