0.1.5 • Published 4 years ago

html-scripting v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

HtmlScripting

npm version License: MIT

Easy way to write HTML code with only JS.

Installation

npm or yarn:

$ npm i html-scripting

Description

The main idea is to be able to write clear and readable code html, using simple js structure.

The structure like this, is able to convert this js code:

var HtmlScripting = require('html-scripting');

var htmlScripting = new HtmlScripting('html');

var html5 = htmlScripting.html('5', 'en').head('UTF-8', 'My title').body().p('My text here');

into this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>My title</title>
  </head>

  <body>
    <p>My text here</p>
  </body>
</html>

Contributing

If you want to contribute to a project and make it better, feel free to fork and contribute.

License

MIT

Author

Rogério Araújo

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago