You'd need to compile it to some kind of executable / binary first.
Then yeah, parameters, inputs, outputs.
The output to StdOut should be in HTML though.
StdErr I don't think gets output to the browser at the other end, but may be useful for logging on the server.
Make sure the code is 'tight'.