I have some configuration problem I can't see. I've followed the instructions provided in the latest twirl README, but the html package is undefined according to the compiler.
I've included the
sbt-twirlplugin in theproject/plugins.sbtfileaddSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.3")In the
project/Build.scalaI've enabled the pluginlazy val root = Project(id = "proj", base = file(".")) .enablePlugins(play.twirl.sbt.SbtTwirl) .settings(rootSettings: _*)I've placed the
page.scala.htmlin thesrc/main/twirlsubdirectory (either directly or using thecom/somethin/coolpath)
Now if I'm trying to import the html package (or com.somethin.cool.html) the compiler complains it's undefined. I can compile the templates with 'twirlCompile' command, and they get properly generated in the target subdirectory, but they are invisible to the main project.
Note: This is not a PlayFramework project
- Scala: 2.10.4
- sbt: 0.13.6
- twirl: 1.0.3