I'm trying to combine 2 binding fragments into one without recourse to an englobing XML literal.
See the following code:
@dom def a = <div><p>a</p></div>
@dom def b = <div><p>b</p></div>
@dom def block = {
// <div>
{a.bind}
{b.bind}
// </div>
}
See ScalaFiddle
As expected, this does not work, only b is displayed.
What I'm looking for here is a way to combine 2 fragments into one, through a function with this signature (for example)
combine: Binding[Node] x Binding[Node] -> Binding[BindingSeq[Node]]
How is it possible ?
Thanks :)