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.
- Host: GitHub
- URL: https://github.com/rodgeraraujo/html-scripting
- Owner: rodgeraraujo
- License: mit
- Created: 2020-05-30T03:15:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T03:45:49.000Z (over 5 years ago)
- Last Synced: 2024-10-18T06:41:05.213Z (about 1 year ago)
- Topics: html, html-builder, html-javascript, javascript, js
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HtmlScripting
[](https://badge.fury.io/js/html-scripting) [](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)