Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-28T08:42:25.000Z (17 days ago)
- Last Synced: 2025-01-28T09:26:54.301Z (17 days ago)
- Topics: html, hummingbird, swift-on-server, templating, web
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
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://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fhummingbird-community%2Fhummingbird-elementary%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/hummingbird-community/hummingbird-elementary)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fhummingbird-community%2Fhummingbird-elementary%2Fbadge%3Ftype%3Dplatforms)](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.