Code coverage report for lib/index.js

Statements: 100% (13 / 13)      Branches: 100% (4 / 4)      Functions: 100% (1 / 1)      Lines: 100% (13 / 13)      Ignored: 1 branch     

All files » lib/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27          1   1   1 1 1   1       1 1 2 2 2   1 1    
// USAGE:
// var handlebars = require('handlebars');
 
// var local = handlebars.create();
 
var handlebars = require('../dist/cjs/handlebars')["default"];
 
handlebars.Visitor = require('../dist/cjs/handlebars/compiler/visitor')["default"];
 
var printer = require('../dist/cjs/handlebars/compiler/printer');
handlebars.PrintVisitor = printer.PrintVisitor;
handlebars.print = printer.print;
 
module.exports = handlebars;
 
// Publish a Node.js require() handler for .handlebars and .hbs files
/* istanbul ignore else */
Eif (typeof require !== 'undefined' && require.extensions) {
  var extension = function(module, filename) {
    var fs = require("fs");
    var templateString = fs.readFileSync(filename, "utf8");
    module.exports = handlebars.compile(templateString);
  };
  require.extensions[".handlebars"] = extension;
  require.extensions[".hbs"] = extension;
}