Closed rauchg closed 9 years ago
We avoided this because we didn't want to add the complexity of a html parser or a regex.
However:
var h = require('virtual-hyperscript')
h('p.woot', { style: { dynamic: val } })
Will work today, where the first argument is a CSS style selector thing.
We don't need to support the entire HTML grammar though. This would make expressing attributes a lot easier i think.
Also, why does virtual-dom
have its own h/
directory? How is it different from virtual-hyperscript
?
I now see that the plan is to merge it.
@guille I prematurely pulled virtual-hyperscript out, we do plan to merge them :)
For the sake of developer ergonomics, is there any effort already under way to parse some sort of markup into a series of virtual-dom? It could be a useful build step for something like Grunt, Gulp or Brococli.
should be trivial for you to generate it using the rxjs transformer
cleaning up old tickets - open another issue if there's something here which is still not resolved
jQuery style node initialization: