1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
-
+
|
Introducing To Writing Wapp Applications
========================================
1.0 Hello World
---------------
Wapp applications are easy to develop. A hello-world program is as follows:
>
#!/usr/bin/wapptclsh
package require wapp
proc wapp-default {req} {
proc wapp-default {} {
wapp-subst {<h1>Hello, World!</h1>\n}
}
wapp-start $::argv
Every Wapp application defines one or more procedures that accept HTTP
requests and generate appropriate replies.
For an HTTP request where the initial portion of the URI path is "abcde", the
|