The tdstruct format is a pure JavaScript structure to describe a Document Object Model (DOM) structure. It can be transformed to a DOM element with children by the Tripledollar library. It can also be converted to a JSON string. The tdstruct format is used to construct DOM elements in a web browser by JavaScript.
The tdstruct is always a JavaScript Array and it's first item is the identifier, optionally followed by tdparams.
The identifier starts with a tag name, optionally followed by an id and classes. A namespace name can be added in front of the tag name, to create DOM in a certain namespace.
A tdparam can be a plain value, or a property object with DOM attributes. There can be many tdparams.
(c) 2015, tripledollar.net