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-twirl
plugin in theproject/plugins.sbt
fileaddSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.3")
In the
project/Build.scala
I've enabled the pluginlazy val root = Project(id = "proj", base = file(".")) .enablePlugins(play.twirl.sbt.SbtTwirl) .settings(rootSettings: _*)
I've placed the
page.scala.html
in thesrc/main/twirl
subdirectory (either directly or using thecom/somethin/cool
path)
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