Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.05 KB

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 HTML web apps with Vapor.

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

import Vapor
import VaporElementary

let app = try await Application.make(.detect())

app.get("index") { _ in
    HTMLResponse {
        MyIndexPage()
    }
}

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