![]() | |
Original author(s) | Scalatra contributors |
---|---|
Initial release | April 11, 2009 (2009-04-11) |
Stable release | |
Repository | Scalatra Repository |
Operating system | Cross-platform |
Available in | Scala |
Type | Web application framework |
License | BSD |
Website | scalatra |
Scalatra is a free and open sourceweb application framework written inScala.[2] It is a port of theSinatra framework written inRuby. Scalatra is an alternative to theLift,Play!, andUnfiltered frameworks.
Scalatra is an example of amicroframework, a web software development framework which attempts to be as minimal as possible.
A full Scalatra application can be written in very few lines of code:
packageorg.example.appimportorg.scalatra._classMyScalatraFilterextendsScalatraFilter{get("/hello/:name"){<h1>Hello,{params("name")}</h1>}}
From this tinydomain-specific language, Scalatra can be expanded into a minimal but full-featuredmodel-view-controller web framework. For example, additional libraries can be attached in order to providetemplating,object-relational mapping, andunit testing orbehaviour driven development support.