Wapp

Diff
Login

Differences From Artifact [f0ac16f899]:

To Artifact [9ba2743837]:


151
152
153
154
155
156
157
158

159
160
161
162



151
152
153
154
155
156
157

158
159
160


161
162
163







-
+


-
-
+
+
+
    }
    wapp-start $argv

The application script first loads the Wapp code itself using
the "package require" at the top.  (Some applications may choose
to substitute "source wapp.tcl" to accomplish the same thing.)
Next the application defines various procs that will generate the
replies to HTTP requests.  Differ procs are invoked based on the
replies to HTTP requests.  Different procs are invoked based on the
first element of the URI past the Wapp script name.  Finally,
the "wapp-start" routine is called to start Wapp running.  The
"wapp-start" routine never returns, so it should be the very last
command in the application script.
"wapp-start" routine never returns (or in the case of CGI, it only
returns after the HTTP request has been completely processed), 
so it should be the very last command in the application script.