A simple framework for creating HTML with Swift
jumpper
Welcome to jumpper. Is an open source framework, which is independent of other web frameworks or toolkits available on the market, such as Vapor, Kitura and Perfect. It can be used in conjunction with any of them and even alone. This shows how simple it is to build HTML pages using only Swift.
The idea of this library is to facilitate the creation of static or dynamic pages.
About 10 years ago I developed a library similar to this one, but in another language, it streamlined many projects that I developed.
I decided to bring these concepts to the language I use today.
The project is still under development, feel free to collaborate and leave suggestions, fork and share.
I hope it will be useful for more developers.
Vapor usage
Need Leaf installed
import jumpper
router.get { req -> Future<View> in
let div = Div()
div.add("My first div with jumpper")
return try req.view().render("base", ["title": "Hello jumpper", "body": div.getString()])
}