Skip to content

Instantly share code, notes, and snippets.

View tototoshi's full-sized avatar

Toshiyuki Takahashi tototoshi

View GitHub Profile
@narcisobenigno
narcisobenigno / WebAppWithJetty.scala
Created August 5, 2012 03:47
SBT configs to use Jetty 8.1.x
import sbt._
import Keys._
import com.github.siasia._
import WebPlugin._
import WebappPlugin._
import PluginKeys._
object WebAppWithJetty extends Build {
lazy val root = Project(
def index(id:String) = Action {
getFirstData(id)
}
private def getFirstData(id:String) = {
Cache.get(id) match {
case Some(id2) => getSecondData(id2)
case None => NotFound
}
}
private def getSecondData(id2:String) = {