How do you declare and initialize a variable to be used locally in a Play2 Scala template?
I have this:
@var title : String = \"Home\"
In twirl templates I would recommend using the defining block, because the
@random = @{ new Random().nextInt }
would result in different values when used multiple times!
@defining(new Random().nextInt){ random => }