Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80711 views
1
define(
2
["./handlebars/base","./handlebars/safe-string","./handlebars/exception","./handlebars/utils","./handlebars/runtime","exports"],
3
function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
4
"use strict";
5
/*globals Handlebars: true */
6
var base = __dependency1__;
7
8
// Each of these augment the Handlebars object. No need to setup here.
9
// (This is done to easily share code between commonjs and browse envs)
10
var SafeString = __dependency2__["default"];
11
var Exception = __dependency3__["default"];
12
var Utils = __dependency4__;
13
var runtime = __dependency5__;
14
15
// For compatibility and usage outside of module systems, make the Handlebars object a namespace
16
var create = function() {
17
var hb = new base.HandlebarsEnvironment();
18
19
Utils.extend(hb, base);
20
hb.SafeString = SafeString;
21
hb.Exception = Exception;
22
hb.Utils = Utils;
23
hb.escapeExpression = Utils.escapeExpression;
24
25
hb.VM = runtime;
26
hb.template = function(spec) {
27
return runtime.template(spec, hb);
28
};
29
30
return hb;
31
};
32
33
var Handlebars = create();
34
Handlebars.create = create;
35
36
/*jshint -W040 */
37
/* istanbul ignore next */
38
var root = typeof global !== 'undefined' ? global : window,
39
$Handlebars = root.Handlebars;
40
/* istanbul ignore next */
41
Handlebars.noConflict = function() {
42
if (root.Handlebars === Handlebars) {
43
root.Handlebars = $Handlebars;
44
}
45
};
46
47
Handlebars['default'] = Handlebars;
48
49
__exports__["default"] = Handlebars;
50
});
51