Skip to content

Commit

Permalink
add basic readme (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn authored Jul 3, 2024
1 parent 25678ed commit 096decd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Elementary: HTML Templating in Pure Swift

**A modern and efficient HTML rendering library - inspired by SwiftUI, built for the web.**

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 HummingbirdElementary

let router = Router()
router.get("index") { _, _ in
HTMLResponse {
MyIndexPage()
}
}
```

Check out the docs in the [Elementary repo](https://github.com/sliemeobn/elementary) for more information.

0 comments on commit 096decd

Please sign in to comment.