0.3.0 • Published 12 years ago

text-node v0.3.0

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

text-node

A delta stream which writes to text nodes

Example

var elem = document.getElementById("thing")

var stream = TextNode(elem)

stream.write([{
    one: "goes in data-one span"
    , two: "goes in data-two span"
}])
<div id="thing">
    <span data-one></span>
    <span data-two></span>
</div>

Example with delta stream

var deltas = someDeltaStream
    , elem = someElement

deltas.pipe(TextNode(elem))

Installation

npm install data-bind

Contributors

  • Raynos

MIT Licenced