https://eggbox.fantomfactory.org/pods/vdom/feed.atomvdom VersionsVersion history for vdom2018-12-19T18:45:43ZafAtomhttps://eggbox.fantomfactory.org/pods/vdomvdom v0.1 Released!2018-12-19T18:45:43Z<div class="fandoc"><p>The <code>vdom</code> pod provides a virtual DOM API for Fantom designed to be used with the core <code>dom</code> pod library:</p><pre>// create vdom tree
v1 := VElem("h1") {
it->style = "color: blue"
it.text = "Hello, World"
}
// initial render to DOM node
elem := VDom.render(v1)
// generate a new vdom tree
v2 := VElem("h1") {
it->style = "color: red"
it.text = "Hello, World"
}
// patch existing DOM with changes
VDom.patch(elem, v2)</pre></div>