Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson chrisdickinson/ham.js Secret
Created Dec 21, 2012

Embed
What would you like to do?
this is a horrible idea and i want to cry because of it
var html = ham.start()
with(html) {
div
.span
.text('Hello world')
._span
._div
table
.tbody
.tr
.td
.text('hello')
._td
._td
._tbody
._table
}
console.log(html) // --> domnodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.