Announcing Binding.scala, a reactive web framework

37 views
Skip to first unread message

杨博

unread,
Mar 23, 2016, 11:47:18 PM3/23/16
to scal...@googlegroups.com, sca...@googlegroups.com, scala...@googlegroups.com

Hi, all,

I am proud to announce the availability of Binding.scala.

Binding.scala is a data-binding framework for Scala, running on both JVM and Scala.js.

Binding.scala can be used as a reactive web framework. It enables you use native XML literal syntax to create reactive DOM nodes, which are able to automatically change whenever the data source changes.

@dom def render = {
  val value = Var("")
  <div>
    <input onchange={ event: Event => dom.currentTarget.value }/>
    Your input value is { value.each }
  </div>
}

@JSExport def main(): Unit = {
  dom.render(document.body, render)
}

Binding.scala is simple. It has less concepts and more features than other reactive web framework like ReactJS or Widok.

See Live DEMOs for common patterns when working with Binding.scala.

--
杨博 (Yang Bo)

杨博

unread,
Mar 25, 2016, 11:07:02 PM3/25/16
to Scala.js, scala...@googlegroups.com, sca...@googlegroups.com
  1. It's not native XML. This feature is only available in @dom methods.
  2. It's not native XML. This is HTML DOM. You can invoke DOM API like scrollIntoView on these objects. See https://github.com/ThoughtWorksInc/Binding.scala#user-content-html-literal-and-statically-type-checking for example.

在 2016年3月26日星期六 UTC+8上午3:49:56,Marius Kotsbak写道:
So that means native xml is supported now in SJS? From what I found in Github it was not.
Reply all
Reply to author
Forward
0 new messages