I'm fairly new to Play 2.0 and I'm trying to create HTML snippets that can be embedded/included in other .scala.html files. Basically I need to be able to reference external tags from other .scala.html files.I have the following two tags defined in "tagsfile.scala.html" :
<!-- a bunch of html LIST code goes here -->
}
@myTag2 = {
<!-- a bunch of html LIST code goes here -->
}
and in "mymain.scala.html" I have references to those two externally-defined tags :
<ul> <!-- split data into 2 external includes to prevent Java class size limit violation -->
@myTag1 ()
@myTag2 ()
</ul>
I referenced the external tags as Scala functions, but still the app does not compile. I get a Compilation error : "not found: value myTag1".
I checked my '\target\scala-2.9.1\src_managed\main\views\html' directory, and it does indeed contain both .scala.html files.
In Play 2.0, am I supposed to do some sort of "import" or "include" before referencing those two tags?
Anyone have an idea how to properly reference external tags?
Thnx.