Created
March 10, 2013 10:26
-
-
Save danscotton/5128037 to your computer and use it in GitHub Desktop.
dom builder sketch..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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