How can I generate html from my pure scala block in play framework view?
The following code will put the text of the tags directly in the page and since instead of '<' scala puts '<' the tags are not rendered as html but as pure text!
Is putting the variable as last statement a correct way of returning that variables value as result of block execution?
@block() = @{
var str = "<li>"
str += req.getPage
var += "</li>"
str
}