bredele / grout

:sweat_drops: virtual dom
MIT License
3 stars 0 forks source link

update static data #8

Closed bredele closed 9 years ago

bredele commented 9 years ago
var dom = el('button', '${name}');
dom({
  name: 'olivier'
});

dom({
  name: 'github'
});

It should not generate a new dom element but instead updating the existing one.

bredele commented 9 years ago

we should probably scope the store and use reset if it has been initialized already.