Michael Lafayette
Michael Lafayette

Reputation: 3072

Play Scala Template Bug

When I import a no-param template from file.scala.html and then call it, I get this rendered in the HTML for each call:

BaseScalaTemplate(play.twirl.api.HtmlFormat$@e942bf) 

^ What is this?

Upvotes: 0

Views: 77

Answers (1)

Michael Lafayette
Michael Lafayette

Reputation: 3072

I found the solution. In play templates, if you forget the "()" parenthesis, it returns the address of the template in memory.

Upvotes: 2

Related Questions