I want to declare a scala variable in a view file. How can it be done?
@(title: String)(content: Html)
//this line isnt compiling. I tried without the word defining but it doesn't work either
@defining(l:Seq[String] = Seq("hello","hello2"))
<html><head>...
<body>
@content
//I want to use the list here
<ul id="hardcode-list" >
@l.map{item=><li>item</li>}
</ul>
</body>
</head></html>
for completeness sake, I solved my issues by this code