Version 1 of Wub Direct

Updated 2012-01-27 00:55:16 by CMcC

Direct domains allow you to write a page that processes a GET, takes a bunch of &foo=bar options, and spits out some computed response.

In local.tcl:

namespace eval ::woo {
    proc /woo {r args} {
        return [Http Ok $r [<p> "Woo! [armour $args]"]]
    }

    proc / {r args} {
        return [Http Ok $r [<p> "You said [armour $args]"]]
    }
}

in site.config:

/woo {
    domain Direct
    namespace ::woo
}