This is a HTTP API example rendering a HTML template from a Bucket. It's making use of external Javascript - in this case reading the template (preflight) and rendering it (inflight).
Since this example makes use of external Javascript, it won't run in the Wing Playground yet.
Please make sure to use a current and working setup of the wing cli
wing it
Get the URL from the API and open it in the browser. Each page reload will increase the counter.
wing test --debug main.w