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 |
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
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? 'Hello' prints as expected. Thanks in advance, Doug. (I replaced the real domain with example.com)
#!/usr/bin/tclsh source <full_path>/lib/wapp/wapp.tcl proc wapp-default { wapp-subst { <img src="http://www.example.com/IMG_1870.JPG" style="width:75%"> } wapp-subst { hello } } wapp-start