Version 13 of Wapp

Updated 2018-03-27 04:49:29 by DA
What Wapp
Where https://wapp.tcl.tk/
Description A lightweight, secure web microframework in a single source file. Serves HTTP/1.1 directly, but supports CGI and SCGI as well. Aims for a small, easy-to-learn user API.
Prerequisites Tcl 8.6.
Updated 2018-02-07
Author drh
License 2-clause BSD

Download

fossil clone https://wapp.tcl.tk/index.html wapp.fsl
mkdir wapp
cd wapp
fossil open ../wapp.fsl
tclsh tests/test01.tcl

or see other alternatives at https://wapp.tcl.tk/index.html/doc/trunk/docs/download.md

See also

Discussion

DEC: And you get hold of it by......?

AM See the link above

Dec:Which one?, No simple zip file then..

The following code excerpt results in no image being shown in browser. However, when I bring up thext view of the HTML (via ctrl-U on chrome) and click the link from there, the image shows up. Why does the image not show up through wapp-default? Thanks in advance, Doug. (I replaced the real domain with example.com)

proc wapp-default {

   wapp-subst {
       <img src="http://www.example.com/IMG_1870.JPG" style="width:75%">
   }
   wapp-subst {
      hello
   }

}