We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jester
import htmlgen import jester routes: get "/": resp h1("Hello world")
Prologue
import htmlgen import prologue proc hello*(ctx: Context) {.async.} = resp h1("Hello world") let app = newApp() app.get("/", hello) app.run()
import jester get "/hello/@name": resp "Hello " & @"name"
import prologue proc hello*(ctx: Context) {.async.} = resp "<h1>Hello " & ctx.getPathParams("name", "Prologue") var app = newApp() app.addRoute("/hello/{name}", hello, HttpGet) app.run()