0
Я хочу объявить переменную scala в файле вида. Как это можно сделать?объявить переменную scala в игре 2
@(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>
Возможный дубликат [играть 2.0 создает переменную и присвоить значения] (http://stackoverflow.com/questions/11232772/ играть-2-0-создание-а-переменной-и-Присвоить-значения) –