Skip to content

slimane-swift/MustacheViewEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MustacheViewEngine

Mustache render engine for Slimane

Usage

import Slimane

let app = Slimane()

app.get("/") { req, responder in
  responder {
      let render = Render(engine: MustacheViewEngine(templateData: ["name": "Slimane"]), path: "index")
      Response(custom: render)
  }
}