react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / handlebars / dist / cjs / handlebars.runtime.js
80698 views"use strict";1/*globals Handlebars: true */2var base = require("./handlebars/base");34// Each of these augment the Handlebars object. No need to setup here.5// (This is done to easily share code between commonjs and browse envs)6var SafeString = require("./handlebars/safe-string")["default"];7var Exception = require("./handlebars/exception")["default"];8var Utils = require("./handlebars/utils");9var runtime = require("./handlebars/runtime");1011// For compatibility and usage outside of module systems, make the Handlebars object a namespace12var create = function() {13var hb = new base.HandlebarsEnvironment();1415Utils.extend(hb, base);16hb.SafeString = SafeString;17hb.Exception = Exception;18hb.Utils = Utils;19hb.escapeExpression = Utils.escapeExpression;2021hb.VM = runtime;22hb.template = function(spec) {23return runtime.template(spec, hb);24};2526return hb;27};2829var Handlebars = 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;4445exports["default"] = Handlebars;4647