An open API service indexing awesome lists of open source software.

https://github.com/rodgeraraujo/html-scripting

Easy way to write HTML code with only JS.
https://github.com/rodgeraraujo/html-scripting

html html-builder html-javascript javascript js

Last synced: 9 months ago
JSON representation

Easy way to write HTML code with only JS.

Awesome Lists containing this project

README

          

# HtmlScripting

[![npm version](https://badge.fury.io/js/html-scripting.svg)](https://badge.fury.io/js/html-scripting) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

#### Easy way to write HTML code with only JS.

## Installation

npm or yarn:

```sh
$ 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:

```js
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:

```html



My title


My text here


```

## Contributing

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

## License

[MIT](https://github.com/rodgeraraujo/html-scripting/blob/master/LICENSE)

## Author

[Rogério Araújo](https://github.com/rodgeraraujo)