Skip to content

hummingbird-community/hummingbird-elementary

Elementary: HTML Templating in Pure Swift

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

Important

Elementary has 📦 moved 📦 to its new home at https://github.com/elementary-swift.
Please update your URLs to avoid trouble - and reach out if anything breaks!

This packages helps you serve Elementary HTML web apps with Hummingbird.

Simply wrap HTMLResponse around your HTML content and return it from your routes.

import Hummingbird
import HummingbirdElementary

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

Check out the docs in the Elementary repo for more information.

About

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

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5