When I use Binding.scala, I want to create some div
s according to source data someCollection
:
val someCollection = Seq("foo", "bar")
someCollection.map { item =>
<div>{item.bind}</div>
}
However, I got a compiler error each instructions must be inside a SDE block
.
How can I fix this?