Scalatra

http://www.scalatra.org/

MySample


$ sbt
$ jetty-run
$ prepare-webapp
$ jetty-stop
$ exit



SBT


build.sbt
name := "My Project"
version := "1.0" 
scalaVersion := "2.9.1" 
libraryDependencies += "junit" % "junit" % "4.8" % "test"


> ; update ; run
[info] Updating {file:/Volumes/SSD6402/MyBitBucket/scalatra/d/}default-10418c...
[info] Done updating.
[success] Total time: 1 s, completed Sep 6, 2011 3:17:51 PM
[info] Compiling 1 Scala source to /Volumes/SSD6402/MyBitBucket/scalatra/d/target/scala-2.9.1.final/classes...
[info] Running HelloWorld 
Hello, World
[success] Total time: 7 s, completed Sep 6, 2011 3:17:58 PM



Template engines






Models


While Scalatra does not provide a native structure for models the following persistence libraries are a few that have been successfully integrated.






Scalatra Book

Comments