Version 4 of jimhttp

Updated 2014-09-20 11:13:29 by dbohdan
What jimhttp (name subject to change)
Where https://github.com/dbohdan/jimhttp
Description A prototype of a Sinatra /Flask -like web framework written in pure Jim Tcl.
Platforms Likely all supported by Jim Tcl's aio .
Prerequisites The latest Jim Tcl from the Git repository . The current stable release (Jim Tcl 0.75) won't do.
Updated 09/2014
License MIT

Code example

source http.tcl

http::add-handler GET /hello/:name/:town {
    return [http::make-response \
            "Hello, $routeVars(name) from $routeVars(town)!"]
}

http::start-server 127.0.0.1 8080