/emmet

DOM Manipulation library

Primary LanguageJavaScript

emmet

A simplistic DOM Manipulation JavaScript library heavily inspired by emmet.io.

This piece of code

  var sting = 'div#id.class>p>span{Text}+a[href=#]^section*2'
      emmet.render(sting).append();
   </script>

...will produce.

  <div id="id" class="class">
      <p>
  	  <span>Text</span>
  	  <a href="#"></a>
  	</p>
  	<section></section>
  	<section></section>
  </div>