Skip to content

Instantly share code, notes, and snippets.

@seratch
Last active April 6, 2016 02:39
Show Gist options
  • Save seratch/11068573 to your computer and use it in GitHub Desktop.
Save seratch/11068573 to your computer and use it in GitHub Desktop.
import twirl.sbt.TwirlPlugin._
lazy val baseSettings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ herokuSettings ++ Seq(
// same ...
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
) ++ Twirl.settings
@(name: String)
Hello @{name}!
// --------
// Twirl
resolvers += "spray repo" at "http://repo.spray.io"
addSbtPlugin("io.spray" % "sbt-twirl" % "0.7.0")
package controller
import skinny._
class RootController extends ApplicationController {
def index = html.index("World")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment