![]() | |
Original author(s) | Scalatra contributors |
---|---|
Initial release | April 11, 2009 (2009-04-11) |
Stable release | 2.8.1 / September 25, 2021; 2 years ago (2021-09-25)[1] |
Repository | Scalatra Repository |
Operating system | Cross-platform |
Available in | Scala |
Type | Web application framework |
License | BSD |
Website | scalatra |
Scalatra is a free and open source web application framework written in Scala.[2] It is a port of the Sinatra framework written in Ruby. Scalatra is an alternative to the Lift, Play!, and Unfiltered frameworks.
Scalatra is an example of a microframework, 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:
package org.example.app
import org.scalatra._
class MyScalatraFilter extends ScalatraFilter {
get("/hello/:name") {
<h1>Hello, {params("name")}</h1>
}
}
From this tiny domain-specific language, Scalatra can be expanded into a minimal but full-featured model-view-controller web framework. For example, additional libraries can be attached in order to provide templating, object-relational mapping, and unit testingorbehaviour driven development support.
| |
---|---|
| |
.NET |
|
C++ |
|
ColdFusion |
|
Common Lisp |
|
Haskell |
|
Java |
|
JavaScript |
|
Perl |
|
PHP |
|
Python |
|
Ruby |
|
Rust |
|
Scala |
|
Smalltalk |
|
Other languages |
|
![]() | This Web-software-related article is a stub. You can help Wikipedia by expanding it. |