Show HN: Weya - Fast CoffeeScript markup
vpj.svbtle.com
vpj.svbtle.com
So you can’t use enter(), exit() and updates when data changes. But most users rarely need these features.
I'd argue that if you don't need `enter` or `exit` you probably don't need D3. It's not a DOM manipulation library, it's a data binding library.
And a note to the mods: there's an extra 'f' in the title.
Thanks, fixed.
Here is how I use it in such scenarios:
elems = {}
Weya elem: document.body, ->
for k, v of data
elems[k] = @div "#{v}"
#when element k changes
onChange = (k) ->
elems[k].textContent = "#{data[k]}"
If the change is more complex Weya can again be used to render the content of the changed element (not the entire dom).