Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A sinatra-like web framework for Nim.
Nimrod
tree: 254ee768fe

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
.gitignore
errorpages.nim
jester.nim
patterns.nim
readme.markdown
todo.markdown
utils.nim

readme.markdown

Jester

The sinatra-like web framework for Nimrod. Jester provides a DSL for quickly creating web applications in Nimrod, it currently mimics sinatra a lot:

# myapp.nim
import jester, strtabs, htmlgen

get "/":
  resp h1("Hello world")

run()

Compile and run with:

nimrod c -r myapp.nim

View at: localhost:5000

Examples

Github service hooks

The code for this is pretty similar to the code for Sinatra given here: http://help.github.com/post-receive-hooks/

import jester, json, strtabs

post "/":
  var push = parseJson(@"payload")
  resp "I got some JSON: " & $push

run()
Something went wrong with that request. Please try again.