This project provides examples of swift-htmx
usage
Start the server by running swift run App
in the project root or run the project on Xcode
- HX-Location - Do a client side redirect via
HX-Location
- HX-Reswap - Swap an element via
HX-Reswap
- HX-Trigger - Trigger a client-side event via
HX-Trigger
The AppTests.swift contains a tests for all the request handlers, demonstrating mocked htmx requests and its how the response looks like in an HTTP Response