The Play framework Scala template engine repackaged for stand-alone use.
Questions tagged [twirl]
147 questions
4
votes
0 answers
sbt intellij twirl templates
I am not sure how to get twirl templates to work with Intellij IDEA 14
My build.sbt:
libraryDependencies += "com.typesafe.play" % "twirl-api_2.11" % "1.1.1"
My text template:
@(date: java.util.Date)
hello world
My call to render:
…

user2302244
- 843
- 2
- 11
- 27
4
votes
2 answers
How to resolve reference to twirl generated template class in Scala-IDE?
Using twirl for generating template class. Everything is working fine with sbt and the webpages are rendering.
I am using Scala-IDE for development. And in the Scala-IDE the reference to the template class i.e. "html.test()", test is the template…

Biswanath
- 9,075
- 12
- 44
- 58
4
votes
1 answer
Check Html fragment nullity with Play Framework 2.3.0
I have a tag in my application with the following structure :
@(
columns: Integer
)(header: Html)(body: Html)
@if(header != null) {