However, the error messages that the template engine provides are less-than-detailed. I had created a subdirectory named: app/views/tags. When I tried to use one of the template functions out of that directory I got the error: not found: value gallery
So let's take a look at the important parts.
I have templates:
With this as the important parts of main.scala.html
tags: List[String])(implicit artistModel: Option[models.ArtistModel]) @import tags._
Hmmmm, "not found: value gallery"? Why can't it find gallery? I imported it. It's formed correctly. Well, this is painfully obvious now, but it took a few minutes for me to reconcile that the "tags: List[String]" is clashing with the "@import tags._"
More on the Play Framework Templates