This post originated from an RSS feed registered with Scala Buzz
by Zemian Deng.
Original Post: Sweet! There is a new Scala Web Framework available!
Feed Title: thebugslayer
Feed URL: http://www.jroller.com/thebugslayer/feed/entries/atom?cat=%2FScala+Programming
Feed Description: Notes on Scala and Sweet web framework
It comes with project generator tools that setup your projects, and allow you to scaffold controller and views to existing webapp.
Sweet is MVC based web stack, and it uses Freemarker as View layer. You write your controller in Scala, and any java object or scala object can be used as Model.
Here is an example of how a controller look like:
class SystemInfoController extends Controller {
handle("/index"){ HandlerNameView("sysprops"-> System.getProperties) }
}