Skip to content

Instantly share code, notes, and snippets.

@spinscale
Created February 5, 2013 10:40
Show Gist options
  • Save spinscale/4713646 to your computer and use it in GitHub Desktop.
Save spinscale/4713646 to your computer and use it in GitHub Desktop.
spark-groovy-jrebel-formats
get "/foo.json", { Request request, Response response ->
json([foo: 'bar'])
}
get "/jade", { Request request, Response response ->
jade "test.jade", [foo: 'bar', pageName: 'My page']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment