Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hxari/eremento
Simple JavaScript HTMLElement Generator.
https://github.com/hxari/eremento
eremento htmlelement javascript
Last synced: 22 days ago
JSON representation
Simple JavaScript HTMLElement Generator.
- Host: GitHub
- URL: https://github.com/hxari/eremento
- Owner: hxAri
- License: mit
- Created: 2022-02-27T04:51:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T12:31:12.000Z (over 1 year ago)
- Last Synced: 2023-09-23T20:29:49.134Z (about 1 year ago)
- Topics: eremento, htmlelement, javascript
- Homepage: https://hxari.github.io/projects/Eremento
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Eremento · Logo](https://raw.githubusercontent.com/hxAri/hxAri/main/public/images/1653507202%3B5fe1yJwN3F.png)
Eremento is a tool for building HTML Elements based on objects or properties, you can create HTML element objects and also create raw HTML structures easily with Eremento.
## Features
* Arrangement
Builds the raw HTML structure from the object as well as from the HTML instance itself.
* Object
Builds html elements from objects.
* Multiple
You can construct one element or even more than one html element.## Initialize
Through **UNPKG**
```html```
## Examples
Build raw HTML structure.
```js
/** For Multiple Elements **/
Eremento.arrange([]);/** For Single Element **/
Eremento.arrange({
name: "input",
attributes: {
type: "text",
value: null
}
});/** Results **/
/** */
```Building an HTML Element Instance.
```js
Eremento.create({
name: "button",
attributes: {
dataset: {
id: 0
},
click: e => console.log( e.target.dataset.id )
}
});
```## License
All source code license under [MIT license](https://opensource.org/licenses/MIT). Please [see](https://opensource.org/licenses/MIT) the [MIT](https://opensource.org/licenses/MIT) documentation for details.