html-scripting

0.1.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i html-scripting

Weekly Downloads

19

Version

0.1.5

License

MIT

Unpacked Size

18.8 kB

Total Files

21

Last publish

Collaborators

  • rodgeraraujo