examples/drafts-plugin/index.js
function plugin(name) {
  return function(app) {
    var files = app.getViews(name);
    for (var file in files) {
      if (files[file].data.draft) delete files[file];
    }
  };
}
function plugin(name) {
  return function(app) {
    var files = app.getViews(name);
    for (var file in files) {
      if (files[file].data.draft) delete files[file];
    }
  };
}
function plugin ( name ) { return function ( app ) { var files = app . getViews ( name ) ; for ( var file in files ) { if ( files [ file ] . data . draft ) delete files [ file ] ; } } ; }
Assemble plugin to remove files marked as `draft` from a collection.

@return {Function}
Assemble plugin to remove files marked as draft from a collection .