react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / handlebars / dist / cjs / handlebars.js
80698 views"use strict";1/*globals Handlebars: true */2var Handlebars = require("./handlebars.runtime")["default"];34// Compiler imports5var AST = require("./handlebars/compiler/ast")["default"];6var Parser = require("./handlebars/compiler/base").parser;7var parse = require("./handlebars/compiler/base").parse;8var Compiler = require("./handlebars/compiler/compiler").Compiler;9var compile = require("./handlebars/compiler/compiler").compile;10var precompile = require("./handlebars/compiler/compiler").precompile;11var JavaScriptCompiler = require("./handlebars/compiler/javascript-compiler")["default"];1213var _create = Handlebars.create;14var create = function() {15var hb = _create();1617hb.compile = function(input, options) {18return compile(input, options, hb);19};20hb.precompile = function (input, options) {21return precompile(input, options, hb);22};2324hb.AST = AST;25hb.Compiler = Compiler;26hb.JavaScriptCompiler = JavaScriptCompiler;27hb.Parser = Parser;28hb.parse = parse;2930return hb;31};3233Handlebars = create();34Handlebars.create = create;3536/*jshint -W040 */37/* istanbul ignore next */38var root = typeof global !== 'undefined' ? global : window,39$Handlebars = root.Handlebars;40/* istanbul ignore next */41Handlebars.noConflict = function() {42if (root.Handlebars === Handlebars) {43root.Handlebars = $Handlebars;44}45};4647Handlebars['default'] = Handlebars;4849exports["default"] = Handlebars;5051