tdstruct

0.1.1 • Public • Published

TDStruct

TDStruct comes from Tripledollar and is pure JavaScript structure to build DOM elements. This module is a utility for Node.js to create HTML documents from tdstructs. The definition fo tdstruct can be found here. To use this utility install it with:

npm install tdstruct

Then use it in your code.

var tdstruct = require('tdstruct');

var tds = ['html',
  ['head',
    ['title', 'Test TDStruct']
  ],
  ['body',
    ['img', {src: 'https://steenk.github.io/images/logo.png'}]
  ]
];

console.log(tdstruct.toHtml(td));

/tdstruct/

    Package Sidebar

    Install

    npm i tdstruct

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • steenk