code: function (hbspdir, hbspfile, encode) {
          encode = encode || DEFAULT_ENCODE;
  
          var reg_hbsp = /\.hbsp$/;
          var hbsppath = path.normalize(hbspdir + '/' + hbspfile);
          var hbspjsfile = hbspfile.replace(reg_hbsp, '.hbsp.js');
          var dstpath = path.normalize(hbspdir + '/' + hbspjsfile);
  
          var out = [];
  
          out.push('define([\'beez\'], function(beez) {\n');
          out.push('  var Handlebars = beez.vendor.Handlebars;\n');
          out.push('  var template = Handlebars.template, partials = Handlebars.partials = Handlebars.partials || {};\n');
  
          var data = fs.readFileSync(hbsppath, encode);
          var template = path.basename(hbsppath);
          template = template.replace(reg_hbsp, '');
  
          out.push('partials[\''+template+'\'] = template('+handlebars.precompile(data)+');\n');
          out.push('return partials[\''+template+'\'];');
          out.push('});');
          out = out.join('');
          fs.writeFileSync(dstpath, out, encode);
          return dstpath;
  
      }
docs: If there is a hbsp, I generate the. hbsp.js what was handlebars.precompile.
  Warnning: JS that is generated, become Handlebars.partials.
  
  @name hbsp2hbspjs
  @memberof hbs
  @method
  @param {String} hbspdir src/dst dir path
  @param {String} hbspfile src hbsp file name
  @param {String} encode read file encode.
  @return {String} Output file path.