Last active
April 6, 2016 02:39
-
-
Save seratch/11068573 to your computer and use it in GitHub Desktop.
How to use Twirl with Skinny Framework - https://groups.google.com/forum/#!topic/skinny-framework/7NrizWtZbYE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twirl.sbt.TwirlPlugin._ | |
lazy val baseSettings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ herokuSettings ++ Seq( | |
// same ... | |
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature") | |
) ++ Twirl.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(name: String) | |
Hello @{name}! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------- | |
// Twirl | |
resolvers += "spray repo" at "http://repo.spray.io" | |
addSbtPlugin("io.spray" % "sbt-twirl" % "0.7.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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