def HelloWorld(handler, t):
t.say(["<STR_LIT>", "<STR_LIT>"])<EOL>json = t.RenderJson()<EOL>logging.info("<STR_LIT>" % json)<EOL>handler.response.out.write(json)<EOL>
This is the traditional "Hello, World" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling "action" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. Finally, we write the JSON object to the standard output, so that it will get POSTed back to the API.