The Artima Developer Community
Sponsored Link

Scala Buzz
Sweet! There is a new Scala Web Framework available!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Zemian Deng

Posts: 49
Nickname: zdeng
Registered: Jan, 2008

Zemian Deng is the creator of SweetScala web framework
Sweet! There is a new Scala Web Framework available! Posted: Sep 28, 2008 8:48 AM
Reply to this message Reply

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
Latest Scala Buzz Posts
Latest Scala Buzz Posts by Zemian Deng
Latest Posts From thebugslayer

Advertisement

Hello everyone,

I have created a web framework, Sweet, using Scala programming language and Open sourced at http://code.google.com/p/sweetscala

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) }
}

And here is a view:


[@main.layout title="system-info - index"]

Your System Properties



[#list sysprops?keys as name]

[/#list]
${name}${sysprops[name]}

[/@main.layout]

If you want to see more, check out the documentation on Sweet: http://code.google.com/p/sweetscala/wiki/WikiHome

Feel free to join the Sweet UserGroup and drop me feedback emails.
Enjoy!
-Zemian Deng

Read: Sweet! There is a new Scala Web Framework available!

Topic: maven speed improvement with cli Previous Topic   Next Topic Topic: The Y Combinator in Scala

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use