docs: function(viewConf, localRessource) {
          if (!viewConf) {
              self.throwError(500, 'No views configuration found. Did you try to add views before using Controller::render(...) ? Try to run: ./gina.sh -av '+options.conf.bundle)
          }
  
          var res     = '',
              tmpRes  = {},
              css     = {
                  media   : "screen",
                  rel     : "stylesheet",
                  type    : "text/css",
                  content : []
              },
              cssStr  = ' ',
              js      = {
                  type    : "text/javascript",
                  content : []
              },
              jsStr   = ' ',
              exclude  = null;
  
          //intercept errors in case of malformed config
          if ( typeof(viewConf) != "object" ) {
              cssStr  = viewConf;
              jsStr   = viewConf
          }
  
  
          //cascading merging
          if (localRessource !== 'default') {
              if ( typeof(viewConf[localRessource]) != 'undefined') {
  
                  var noneDefaultJs   = (viewConf[localRessource]['javascripts']) ? JSON.parse(JSON.stringify(viewConf[localRessource]['javascripts'])) : [] ;
                  var noneDefaultCss  = (viewConf[localRessource]['stylesheets']) ? JSON.parse(JSON.stringify(viewConf[localRessource]['stylesheets'])) : [] ;
  
                  viewConf[localRessource] = merge(viewConf.default, viewConf[localRessource]);
  
                  if ( viewConf[localRessource]["javascriptsExclude"] ) {
  
                      if ( Array.isArray(viewConf[localRessource]["javascriptsExclude"]) && !/(all|\*)/.test(viewConf[localRessource]["javascriptsExclude"][0]) || typeof(viewConf[localRessource]["javascriptsExclude"]) == 'string' && !/(all|\*)/.test(viewConf[localRessource]["javascriptsExclude"]) ) {
  
                          for (var i = 0, len = viewConf.default['javascripts'].length; i<len; ++i) {
                              if ( viewConf.default['javascripts'] && viewConf[localRessource]['javascripts'].indexOf(viewConf.default['javascripts'][i]) ) {
                                  viewConf[localRessource]['javascripts'].splice(viewConf[localRessource]['javascripts'].indexOf(viewConf.default['javascripts'][i]), 1)
                              }
                          }
                      } else {// else means that we exclude all default
                          viewConf[localRessource]['javascripts'] = noneDefaultJs;
                      }
                  }
  
                  if ( viewConf[localRessource]["stylesheetsExclude"] ) {
  
                      if ( Array.isArray(viewConf[localRessource]["stylesheetsExclude"]) && !/(all|\*)/.test(viewConf[localRessource]["stylesheetsExclude"][0]) || typeof(viewConf[localRessource]["stylesheetsExclude"]) == 'string' && !/(all|\*)/.test(viewConf[localRessource]["stylesheetsExclude"]) ) {
  
                          for (var i = 0, len = viewConf.default['stylesheets'].length; i<len; ++i) {
                              if ( viewConf.default['stylesheets'] && viewConf[localRessource]['javascripts'].indexOf(viewConf.default['javascripts'][i]) ) {
                                  viewConf[localRessource]['stylesheets'].splice(viewConf[localRessource]['javascripts'].indexOf(viewConf.default['javascripts'][i]), 1)
                              }
                          }
                      } else {// else means that we exclude all default
                          viewConf[localRessource]['stylesheets'] = noneDefaultJs;
                      }
                  }
  
  
              } else {
                  viewConf[localRessource] = viewConf.default
              }
          }
  
          //Get css
          if( viewConf[localRessource]["stylesheets"] ) {
              tmpRes  = getNodeRes('css', cssStr, viewConf[localRessource]["stylesheets"], css);
  
              cssStr  = tmpRes.cssStr;
              css     = tmpRes.css;
              tmpRes  = null
          }
          //Get js
          if( viewConf[localRessource]["javascripts"] ) {
              tmpRes  = getNodeRes('js', jsStr, viewConf[localRessource]["javascripts"], js);
  
              jsStr   = tmpRes.jsStr;
              js      = tmpRes.js;
              tmpRes  = null
          }
  
          set('page.stylesheets', cssStr);
          set('page.scripts', jsStr)
      }