react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / handlebars / lib / handlebars.runtime.js
80684 views/*globals Handlebars: true */1module base from "./handlebars/base";23// Each of these augment the Handlebars object. No need to setup here.4// (This is done to easily share code between commonjs and browse envs)5import SafeString from "./handlebars/safe-string";6import Exception from "./handlebars/exception";7module Utils from "./handlebars/utils";8module runtime from "./handlebars/runtime";910// For compatibility and usage outside of module systems, make the Handlebars object a namespace11var create = function() {12var hb = new base.HandlebarsEnvironment();1314Utils.extend(hb, base);15hb.SafeString = SafeString;16hb.Exception = Exception;17hb.Utils = Utils;18hb.escapeExpression = Utils.escapeExpression;1920hb.VM = runtime;21hb.template = function(spec) {22return runtime.template(spec, hb);23};2425return hb;26};2728var Handlebars = create();29Handlebars.create = create;3031/*jshint -W040 */32/* istanbul ignore next */33var root = typeof global !== 'undefined' ? global : window,34$Handlebars = root.Handlebars;35/* istanbul ignore next */36Handlebars.noConflict = function() {37if (root.Handlebars === Handlebars) {38root.Handlebars = $Handlebars;39}40};4142Handlebars['default'] = Handlebars;4344export default Handlebars;454647