Skip to content
/ ennet Public

Package ennet parses Emmet-like abbreviations and expands them into XML.

License

Notifications You must be signed in to change notification settings

shu-go/ennet

Repository files navigation

Package ennet parses Emmet-like abbreviations and expands them into XML.

Go Report Card Go Reference MIT License

go get

go get -u github.com/shu-go/ennet

Example

func Example() {
	expanded, _ := ennet.Expand("ul>li.item-${ITEM$}*3")
	fmt.Println(expanded)

	//Output:
	// <ul><li class="item-1">ITEM1</li><li class="item-2">ITEM2</li><li class="item-3">ITEM3</li></ul>
}

About

Package ennet parses Emmet-like abbreviations and expands them into XML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages