https://github.com/hummingbird-community/hummingbird-elementary
A modern and efficient HTML rendering library - inspired by SwiftUI, built for the web.
https://github.com/hummingbird-community/hummingbird-elementary
html hummingbird swift-on-server templating web
Last synced: 2 months ago
JSON representation
A modern and efficient HTML rendering library - inspired by SwiftUI, built for the web.
- Host: GitHub
- URL: https://github.com/hummingbird-community/hummingbird-elementary
- Owner: hummingbird-community
- License: apache-2.0
- Created: 2024-07-03T18:30:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-05T16:50:12.000Z (6 months ago)
- Last Synced: 2025-07-30T09:03:10.417Z (3 months ago)
- Topics: html, hummingbird, swift-on-server, templating, web
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Elementary: HTML Templating in Pure Swift
**A modern and efficient HTML rendering library - inspired by SwiftUI, built for the web.**
[](https://swiftpackageindex.com/hummingbird-community/hummingbird-elementary)
[](https://swiftpackageindex.com/hummingbird-community/hummingbird-elementary)This packages helps you serve [Elementary](https://swiftpackageindex.com/sliemeobn/elementary) HTML web apps with Hummingbird.
Simply wrap `HTMLResponse` around your HTML content and return it from your routes.
```swift
import Hummingbird
import HummingbirdElementarylet router = Router()
router.get("index") { _, _ in
HTMLResponse {
MyIndexPage()
}
}
```Check out the docs in the [Elementary repo](https://github.com/sliemeobn/elementary) for more information.