code: function createDocs() {
    if(!this.config.path.docs) return;
    try {
      var hasDocFolder = fs.existsSync(Component.appPath(this.config.path.docs)),
        hasTemplate = fs.existsSync(Component.appPath(this.config.docs.template));
      if(!hasDocFolder || !hasTemplate) throw new Error("No docs");
    } catch(e) {
      // No documentation support.
      return;
    }
    var docTwig = fs.readFileSync(Component.appPath(this.config.docs.template), { encoding: 'utf8' }).toString();
    var html = viewEngine.render(docTwig, {
      locals: {
        routes: this.routes
      }
    });
    try {
      fs.writeFileSync(Component.appPath(this.config.path.docs, 'doc.html'), html, { flag: 'w', encoding: 'utf8' });
      log.trace('CruxServer: Documented %s routes in ' + this.config.path.docs, routeCount);
    } catch(e) {}
  }
docs: /*
  Tries and renders the HTML Doc template in the specified documentation folder.