tclhttpd

DirectOO
Login

DirectOO

Getting Started

DirectOO is a new feature in Tclhttpd 4.0. It's goal is to allow applications to be built around TclOO, as well as to allow for more flexible handling of virtual paths.

To use DirectOO:

package require httpd::directoo

oo::class create myurl {
   superclass httpd.url

   method /html args {
      my reset
      my puts {
<HTML><BODY>
Hello World!
</BODY></HTML\>
   }
}

myurl create WEBOBJ /test

For more details httpd.url

For a test script with examples see bin/test/directoo.tcl