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
Original author(s)Scalatra contributors
Initial releaseApril 11, 2009 (2009-04-11)
Stable release
2.7.0 / February 29, 2020 (2020-02-29)[1]
Preview release
2.7.0.RC1 / July 1, 2019 (2019-07-01)[1]
RepositoryScalatra Repository
Operating systemCross-platform
Available inScala
TypeWeb application framework
LicenseBSD
Websitescalatra.org

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 testing or behaviour driven development support.

Software built with Scalatra

References


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.