Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80711 views
1
define(
2
["./handlebars.runtime","./handlebars/compiler/ast","./handlebars/compiler/base","./handlebars/compiler/compiler","./handlebars/compiler/javascript-compiler","exports"],
3
function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
4
"use strict";
5
/*globals Handlebars: true */
6
var Handlebars = __dependency1__["default"];
7
8
// Compiler imports
9
var AST = __dependency2__["default"];
10
var Parser = __dependency3__.parser;
11
var parse = __dependency3__.parse;
12
var Compiler = __dependency4__.Compiler;
13
var compile = __dependency4__.compile;
14
var precompile = __dependency4__.precompile;
15
var JavaScriptCompiler = __dependency5__["default"];
16
17
var _create = Handlebars.create;
18
var create = function() {
19
var hb = _create();
20
21
hb.compile = function(input, options) {
22
return compile(input, options, hb);
23
};
24
hb.precompile = function (input, options) {
25
return precompile(input, options, hb);
26
};
27
28
hb.AST = AST;
29
hb.Compiler = Compiler;
30
hb.JavaScriptCompiler = JavaScriptCompiler;
31
hb.Parser = Parser;
32
hb.parse = parse;
33
34
return hb;
35
};
36
37
Handlebars = create();
38
Handlebars.create = create;
39
40
/*jshint -W040 */
41
/* istanbul ignore next */
42
var root = typeof global !== 'undefined' ? global : window,
43
$Handlebars = root.Handlebars;
44
/* istanbul ignore next */
45
Handlebars.noConflict = function() {
46
if (root.Handlebars === Handlebars) {
47
root.Handlebars = $Handlebars;
48
}
49
};
50
51
Handlebars['default'] = Handlebars;
52
53
__exports__["default"] = Handlebars;
54
});
55