code: function(dstpath, hbsfile, store, encode, headers) {
          encode = encode || DEFAULT_ENCODE;
  
          var dstfile = path.basename(dstpath);
  
          var s = Array.prototype.slice.call(dstfile.split('.'));
          var extname = s.pop();
          var key= s.pop();
          var env = s.pop();
          var prefix = s.join('.');
  
          var hbspath = path.normalize(path.join(path.dirname(dstpath), hbsfile));
          var data = fs.readFileSync(hbspath, encode);
          var template = handlebars.compile(data);
  
          var locals = {};
          if (store.stat.data.hasOwnProperty(key)) {
              locals = obj.copy( store.stat.data[key], {});
  
              if (locals.hasOwnProperty('extend') && headers && common.isUAOverride(locals, headers) && locals.extend.hasOwnProperty('content')) {
                  locals.requirejs = obj.copy(locals.extend.content, locals.requirejs);
                  logger.debug('Override hbs2hbsc2html requirejs:', locals.requirejs);
              }
  
              for (var k in locals.requirejs.config) {
                  var newkey = k.replace('.', '_'); // data.requirejs.config key copy . -> _
                  locals.requirejs.config[newkey] = locals.requirejs.config[k];
              }
  
              locals.name = env; // enviroment
              locals.key = key;
          }
  
          var output = template(locals);
  
          ///
          fs.writeFileSync(dstpath, output, encode);
  
          return dstpath;
      }
docs: If you have a "index.html.hbs", I generated "[env].html".
  
  @name hbs2hbsc2html
  @param {String} dstpath absolute path of "[env].html"
  @param {String} hbsfile src hbs file name
  @param {Object} store bootstrap store.
  @param {String} encode read file encode.
  @param {Object} headers http request headers
  @return {String} Output file path.