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 [
"Woo! [armour $args]"]] } proc / {r args} { return [Http Ok $r [
"You said [armour $args]"]]
}
}
======
in site.config:
======
/woo {
domain Direct
namespace ::woo
}
======
results:
======
http://localhost:8080/woo/?moop=1
==> You said moop 1
http://localhost:8080/woo/woo?moop=1
==> Woo! moop 1
======
<