domicile - Programmatic creation of DOM elements. Vaguely similar to React's DOM bits.

  •        0

A pre-built instance of ``domicile.Dom``. A convenient shortcut.Like all instances of ``domicile.Dom``, this has a method per-HTML-tagavailable (85 tags currently) on it, for easy creation of tags.**Example:**```javascriptvar D = require('domicile').D// Create a simple div.var div_1 = D.div(null, "Hello, world!")// Now with some attributes.var div_2 = D.div({class: 'greeting', 'id': 'welcome_msg'}, "Hello!")```

https://github.com/toastdriven/domicile

Tags
Implementation
License
Platform

   

comments powered by Disqus


Related Projects