Skip to content

rodgeraraujo/html-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easy way to write HTML code with only JS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published