Skip to content

Instantly share code, notes, and snippets.

@danscotton
Created March 10, 2013 10:26
Show Gist options
  • Select an option

  • Save danscotton/5128037 to your computer and use it in GitHub Desktop.

Select an option

Save danscotton/5128037 to your computer and use it in GitHub Desktop.
dom builder sketch..
var structure = frag(
div('#js-a',
p.text('abc'),
p.text('def')
),
div('#js-b', ['x', 'y', 'z'],
p('#js-c', ['some_other_class']).text('ghi')
)
);
var structure = figure(
div('#media-1', ['media-container', 'media-wrapper']),
figcaption(
span(['cap']).text('Caption')
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment