1.2.2 • Published 5 years ago

dombat v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

dombat

npm.io npm.io npm.io npm.io

Install

From NPM:
npm install dombat

From GitHub:
npm install xist/dombat

Example

import { html, head, title, body, div, p } from "dombat";
// import * as tag from "dombat"; <-- or you can do this

const dom = html(
  head(title("Example DOM")),
  body(div(p("This is an example paragraph inside a div.")))
);

The output of dom.getHTML() would be:

<html>
  <head>
    <title>Example DOM</title>
  </head>
  <body>
    <div>
      <p>This is an example paragraph inside a div.</p>
    </div>
  </body>
</html>

Contribute

Pull requests are encouraged.

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago