nickwb / ddom

DynamicDOM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DynamicDOM

DOM generation, clean and simple.

_dd.create('div', {
    content: [
        'A simple way to generate DOM trees from code: ',
        { tag: 'a', href: 'https://github.com/nickwb/ddom', content: 'DynamicDOM'}
    ]
});

DynamicDOM is:

  • Simple, intuitive and powerful.
  • Compatible with all major browsers.
  • Available as a standalone library, or with a jQuery adapter.
  • Licensed under the MIT license.

Tiny:

  • Standalone - 1.6KB minified, 850 Bytes gzipped.
  • Using jQuery Adapter - 1.0KB minified, 540 Bytes gzipped.

Features:

  • Easily create DOM trees of any depth.
  • Utilities are provided to easily bind events and set CSS styles/classes.
  • Function evaluation to generate subtrees.

Next Steps:

About

DynamicDOM

License:MIT License


Languages

Language:JavaScript 100.0%