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!")```



comments powered by Disqus

Related Projects

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.

Tag Cloud >>