Version 1 of init.tcl script

Updated 2014-08-22 10:26:38 by NickyQcode

init.tcl

ns_register_proc GET /index.html hello

proc hello {} {
   set set_id [ns_conn form]
   set param_value [ns_set get $set_id foo]

   ns_return 200 text/html "Hello World. Value $param_value"
}

Example Usage

 alpha.co.uk/hello.html?foo=<value>

Output:

   Hello World. Value <value>