v2.1.2
Highlight
This version supports Watchable, which is the common super type of Binding and BindingSeq. With the help of Watchable
, now it is possible to conditionally render either single or multiple HTML elements created by the @html annotation. For example:
@html
def myView(singleElement: Boolean) = <div>
{
if (singleElement) {
<div>Single Element</div>
} else {
<div>Element 1</div>
<div>Element 2</div>
}
}
</div>
See https://scastie.scala-lang.org/Atry/kYVUZ7eHQrya155fApl9bA/12 for a live example
What's Changed
- Update scalafmt-core to 3.0.8 by @scala-steward in #135
- Update scalatest to 3.2.10 by @scala-steward in #136
- Update sbt-pgp to 2.1.1 by @scala-steward in #134
- Update sbt-pgp to 2.1.2 by @scala-steward in #137
- Hide bindingSeqBindableSeq, which results ambiguous implicit values by @Atry in defbb2b
Full Changelog: v2.1.1...v2.1.2