Skip to content

holmlibs/emmet-to-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmmetToElement

EmmetToElement is a JavaScript library that provides functions for converting Emmet-like syntax into HTML elements.

Functions

emmetToElements

emmetToElements('section#page>(header>h1{Header} + #content{Content})')

This function takes a string parameter, emmetString, which represents a simplified Emmet-like script. It converts this script into an array of HTML elements.

simplifiedEmmetToElement

simplifiedEmmetToElement('button#submit{Submit}')

This function converts a simplified Emmet-like script into an HTMLElement. The simplified Emmet script does not support '>', '+', and '()' operations.

License

This project is licensed under the MIT License.

About

JavaScript library for converting Emmet-like syntax to HTMLElements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published