The Play framework Scala template engine repackaged for stand-alone use.
Questions tagged [twirl]
146 questions
2
votes
2 answers
illegal start of simple expression
I am trying to execute a simple java program using play. I am getting a compilation error as illegal start of simple expression. I have searched answers for this question, but I didn't get it. My code looks like this:
@(products…
![](../../users/profiles/5375368.webp)
Rekha Ghasni
- 29
- 2
2
votes
1 answer
Code assistance in IntelliJ IDEA for implicit variables in Twirl Template
I am building a web app in Java using the Play! framework and Twirl template engine, using IntelliJ IDEA. In the template there are a number of implicit variables which are available(flash, session, requestHeader). I can successfully reference any…
![](../../users/profiles/1444277.webp)
JacksonWeekes
- 202
- 3
- 11
2
votes
1 answer
Rendering newline charactors from variable in Twirl
I have a toy Play framework project. And my Java code is something like:
String r = "apple\nbanana";
return ok(index.render(r));
And my index.scala.html is something like
@(r: String)