Skip to content

Instantly share code, notes, and snippets.

@ericf
Created June 3, 2011 15:27
Show Gist options
  • Select an option

  • Save ericf/1006530 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/1006530 to your computer and use it in GitHub Desktop.
YUI().use('gallery-markout', function(Y){
var collection = ['a', 'b', 'c'],
list = Y.Markout().ul({ id: 'my-list' });
Y.each(collection, function(){
list.li({ 'class': 'item'}, this);
});
list.node().appendTo('body');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment