Skip to content

v2.1.2

Compare
Choose a tag to compare
@Atry Atry released this 06 Nov 16:04
· 181 commits to master since this release
defbb2b

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

Full Changelog: v2.1.1...v2.1.2