1.0.2 • Published 7 years ago

qmarkup v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

qmarkup

npm install qmarkup
> var q = require(qmarkup)
> q("p").build("This is qmarkup, it helps you write html")
'<p id="" class="">This is qmarkup, it helps you write html</p>'
> q("h1").build("It can use almost any html tags")
'<h1 id="" class="">It can use almost any html tags</h1>'
> q("div").build("It can also use classes", ".class")
'<div id="" class="class">It can also use classes</div>'
> q("span").build("Or IDs", "#id")
'<span id="id" class="">Or IDs</span>'
> q("p").build("Or even both", ["#id-one", ".class-one", "#id-two"])
'<p id="id-one id-two " class="class-one">Or even both</p>'

Feel free to leave issues or pull requests