diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 000000000..7daf09946 --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,30 @@ +# Credits + +## Committers + +- [Gabriele Renzi](http://www.riffraff.info/) +- [Alan Dipert](http://alan.dipert.org/) +- [Ross A. Baker](http://www.rossabaker.com/) +- [Hiram Chirino](http://hiramchirino.com/) +- [Ivan Porto Carrero](http://flanders.co.nz/) + +## Other contributors + +- [Luke Amdor](http://rubbish.io/) +- [JR Boyens](http://jrboyens.github.com/) +- [Tuomas Kareinen](http://www.iki.fi/kareinen/) +- [Miso Korkiakoski](http://github.com/mwing) +- [Yusuke Kuoka](http://d.hatena.ne.jp/mumoshu/) +- [Yung-Luen Lan](http://yllan.org/) +- [Paul Lambert](http://paulitex.com/) +- [Ted Nyman](http://github.com/tnm) +- [Erik Rozendaal](http://github.com/erikrozendaal) +- [Ivan Willig](http://github.com/iwillig) +- [Phil Wills](http://github.com/philwills) + +## Special thanks + +- [The Sinatra Project](http://www.sinatrarb.com/), whose excellent framework, + test suite, and documentation we've shamelessly copied. +- [Mark Harrah](http://github.com/harrah) for his support on the [sbt mailing + list](http://groups.google.com/group/simple-build-tool) diff --git a/README.markdown b/README.markdown index 107486785..36b8959a6 100644 --- a/README.markdown +++ b/README.markdown @@ -43,6 +43,10 @@ Note: if you keep getting frequent OutOfMemory errors from `sbt` you can try cha Note 2: if you already have a checkout, and after a `git pull` the build fails, try to explicitly run the `update` and `clean` sbt tasks before running `compile`. +### Alternative Maven quickstart. + +See the [simple-scalatra-archetype](http://github.com/Srirangan/simple-scalatra-archetype). + ## Community ### Mailing list @@ -521,6 +525,11 @@ Another difference is that ScalatraFilter matches routes relative to the WAR's c ## Migration Guide +### scalatra-2.0.0.M2 to scalatra-2.0.0.M3 + +Should be compatible. If it broke, please share your tale of woe on the +mailing list. + ### scalatra-2.0.0.M1 to scalatra-2.0.0.M2 1. Session has been retrofitted to a Map interface. `get` now returns an option instead of the value. @@ -539,22 +548,3 @@ Scalatra was renamed from Step to Scalatra to avoid a naming conflict with (an u - [SSGI](http://github.com/scalatra/ssgi): Work in progress. Will provide an abstraction layer allowing a future version of Scalatra to run on web servers other than Servlet containers. - [Bowler](http://bowlerframework.org): A RESTful, multi-channel ready web framework in Scala with a functional flavour, built on top of Scalatra and [Scalate](http://scalate.fusesource.org/). - -## Credits - -### Committers - -- [Gabriele Renzi](http://www.riffraff.info/), who started it all with his [blog posts](http://www.riffraff.info/tags/step) -- [Alan Dipert](http://alan.dipert.org/) -- [Ross A. Baker](http://www.rossabaker.com/) -- [Hiram Chirino](http://hiramchirino.com) -- [Ivan Porto Carrero](http://flanders.co.nz) - -### Other contributors - -- [The Sinatra Project](http://www.sinatrarb.com/), whose excellent framework, test suite, and documentation we've shamelessly copied. -- [Mark Harrah](http://github.com/harrah) for his support on the SBT mailing list. -- [Yusuke Kuoka](http://github.com/mumoshu) for adding sessions and header support -- [Miso Korkiakoski](http://github.com/mwing) for various patches. -- [Ivan Willig](http://github.com/iwillig) for his work on [Scalate](http://scalate.fusesource.org/) integration. -- [Phil Wills](http://github.com/philwills) for the path parser cleanup. diff --git a/example/src/main/scala/org/scalatra/CookiesExample.scala b/example/src/main/scala/org/scalatra/CookiesExample.scala new file mode 100644 index 000000000..c0f805948 --- /dev/null +++ b/example/src/main/scala/org/scalatra/CookiesExample.scala @@ -0,0 +1,14 @@ +package org.scalatra + +class CookiesExample extends ScalatraServlet with CookieSupport { + get("/cookies-example") { + val previous = cookies.get("counter") match { + case Some(v) => v.toInt + case None => 0 + } + cookies.update("counter", (previous+1).toString) +
+ Hi, you have been on this page {previous} times already +
+ } +} diff --git a/example/src/main/scala/org/scalatra/TemplateExample.scala b/example/src/main/scala/org/scalatra/TemplateExample.scala index 8926881d5..fd1b19d9b 100644 --- a/example/src/main/scala/org/scalatra/TemplateExample.scala +++ b/example/src/main/scala/org/scalatra/TemplateExample.scala @@ -33,7 +33,8 @@ class TemplateExample extends ScalatraServlet with UrlSupport /*with FileUploadS flash scope login logout - filter demo + filter example + cookies example chat demo