react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / handlebars / lib / handlebars.js
80684 views/*globals Handlebars: true */1import Handlebars from "./handlebars.runtime";23// Compiler imports4import AST from "./handlebars/compiler/ast";5import { parser as Parser, parse } from "./handlebars/compiler/base";6import { Compiler, compile, precompile } from "./handlebars/compiler/compiler";7import JavaScriptCompiler from "./handlebars/compiler/javascript-compiler";89var _create = Handlebars.create;10var create = function() {11var hb = _create();1213hb.compile = function(input, options) {14return compile(input, options, hb);15};16hb.precompile = function (input, options) {17return precompile(input, options, hb);18};1920hb.AST = AST;21hb.Compiler = Compiler;22hb.JavaScriptCompiler = JavaScriptCompiler;23hb.Parser = Parser;24hb.parse = parse;2526return hb;27};2829Handlebars = create();30Handlebars.create = create;3132/*jshint -W040 */33/* istanbul ignore next */34var root = typeof global !== 'undefined' ? global : window,35$Handlebars = root.Handlebars;36/* istanbul ignore next */37Handlebars.noConflict = function() {38if (root.Handlebars === Handlebars) {39root.Handlebars = $Handlebars;40}41};4243Handlebars['default'] = Handlebars;4445export default Handlebars;464748