This is a Static Website example in combination with an API. The ./static page is using htmx to dynamically fetch an HTML snippet with value dervied from a Counter. Since Website and API are served via different domains, the API is CORS enabled.
Please make sure to use a current and working setup of the wing cli
wing it
Get the URL from the Website and open it in the browser.
wing test --debug main.w