code: function getTemplateSource(intentObj) {
      if(intentObj.hasRawResult()) return;
      let isError = intentObj.hasError(),
        templateName;
      // FIRST, we check for error templates.
      if(isError) {
        let errorObj = intentObj.error(),
          statusCode = errorObj.statusCode;
        for(let i=0; i < this.renderTemplates.error.length; i++) {
          let item = this.renderTemplates.error[i];
          // check for status frist,
          if(item.status === statusCode) {
            templateName = getTemplateFromItem(item, intentObj);
            break;
          }
          // get the default one.
          if(!item.status) {
            templateName = getTemplateFromItem(item, intentObj);
            break;
          }
        }
        if(!templateName) {
          templateName = getTemplateFromItem(this.renderTemplates.all, intentObj); //return the all or none.
        }
        if(templateName) {
          // IF we have a template, we have to run the before handler.
          this._runHandler('before', 'render', intentObj, templateName);
        }
        return templateName
      }
      // IF we have a success, return the first one from success.
      if(this.renderTemplates.success) {
        let sTemplate = getTemplateFromItem(this.renderTemplates.success, intentObj);
        if(!sTemplate) {
          sTemplate = getTemplateFromItem(this.renderTemplates.all, intentObj);
        }
        if(sTemplate) {
          this._runHandler('before', 'render', intentObj, sTemplate);
        }
        return sTemplate;
      }
      // Fallback, return the all one, if any.
      let aTemplate = getTemplateFromItem(this.renderTemplates.all, intentObj);
      if(aTemplate) {
        this._runHandler('before', 'render', intentObj, aTemplate);
      }
      return aTemplate;
    }
docs: /*
  This function is called in the intent send() function, and it will return the template
  that we want to use.
  An intent that already has raw result attached to it will ignore the templating system.