tclhttpd

Artifact [781955c290]
Login

Artifact [781955c290]

Artifact 781955c29036a6039a8c7e0c44def5c17b44b195:

Wiki page [DirectOO] by hypnotoad 2015-04-02 02:42:29.
D 2015-04-02T02:42:29.131
L DirectOO
N text/x-markdown
P 09c3ced2321dc073092199361bdfde70d621f325
U hypnotoad
W 637
# 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](wiki?name=httpd.url)

For a test script with examples see [bin/test/directoo.tcl](finfo?name=bin/test/directoo.tcl)
Z 3663aba42ec8ce57f87dae2a17e3fea9