code: function (cb, layout) {
              layout = layout || 'main';
              var self = this,
                  stack = new Y.Parallel();
              stack.html = [];
              stack.view = [];
  
              var counter = 0;
              Object.keys(self.data.files).forEach(function (k) {
                  if (!self.data.files[k].external) {
                      counter++;
                  }
              });
              Y.log('Rendering and writing ' + counter + ' source files.', 'info', 'builder');
              Y.each(self.data.files, function (v) {
                  if (v.external) {
                      return;
                  }
                  self.renderFile(stack.add(function (html, view, data) {
                      if (!view || !data) {
                          return;
                      }
                      stack.html.push(html);
                      stack.view.push(view);
                      if (self.options.dumpview) {
                          Y.Files.writeFile(
                              path.join(self.options.outdir, 'json', 'files_' + self.filterFileName(data.name) + '.json'),
                              JSON.stringify(view),
                              stack.add(noop)
                          );
                      }
                      Y.Files.writeFile(
                          path.join(self.options.outdir, 'files', self.filterFileName(data.name) + '.html'),
                          html,
                          stack.add(noop)
                      );
                  }), v, layout);
              });
              stack.done(function () {
                  Y.log('Finished writing source files', 'info', 'builder');
                  cb(stack.html, stack.view);
              });
          }
docs: Generates the syntax files under `"out"/files/`
  @method writeFiles
  @param {Callback} cb The callback to execute after it's completed