Skip to content

Latest commit

 

History

History

Examples

swift-htmx-examples

This project provides examples of swift-htmx usage

Getting Started

Start the server by running swift run App in the project root or run the project on Xcode

Examples

  • 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