Skip to content

Instantly share code, notes, and snippets.

@kennycason
Last active December 15, 2015 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennycason/5200036 to your computer and use it in GitHub Desktop.
Save kennycason/5200036 to your computer and use it in GitHub Desktop.
HTMN - a JSON like HTML representation
{
html : {
head : {
title : 'Btiques',
style : { link : 'blah.css' },
script : { link : 'blah.js' },
meta : { name : 'foo', content : 'bar' }
},
body : {
.hand-cursor : {
h4 : 'some message'
},
#main : {
a : { href : 'www.a.com', new_tab : true, content : 'click me' },
.error_msg { style : {display : 'none'} }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment