function(options) {
      // Guard clause to prevent loading this template more than once
      if (this.compiledTemplate) {
        return this.compiledTemplate;
      }
  
      // Load the template and compile it
      var template = this.loadTemplate(this.templateId, options);
      this.compiledTemplate = this.compileTemplate(template, options);
  
      return this.compiledTemplate;
    }
function(options) {
      // Guard clause to prevent loading this template more than once
      if (this.compiledTemplate) {
        return this.compiledTemplate;
      }
  
      // Load the template and compile it
      var template = this.loadTemplate(this.templateId, options);
      this.compiledTemplate = this.compileTemplate(template, options);
  
      return this.compiledTemplate;
    }
function ( options ) { // Guard clause to prevent loading this template more than once if ( this . compiledTemplate ) { return this . compiledTemplate ; } // Load the template and compile it var template = this . loadTemplate ( this . templateId , options ) ; this . compiledTemplate = this . compileTemplate ( template , options ) ; return this . compiledTemplate ; }
Internal method to load the template
Internal method to load the template