PluginProbe
Force Refresh / 2.0.0
Force Refresh v2.0.0
3.2.1 3.2.0 3.1.2 3.1.1 3.1.0 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.12.0 All 54 releases
force-refresh / node_modules / handlebars / lib / handlebars.runtime.js

handlebars.runtime.js in Force Refresh 2.0.0, at node_modules/handlebars/lib/handlebars.runtime.js

38 lines 971 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import * as base from './handlebars/base';
2
3 // 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)
5 import SafeString from './handlebars/safe-string';
6 import Exception from './handlebars/exception';
7 import * as Utils from './handlebars/utils';
8 import * as runtime from './handlebars/runtime';
9
10 import noConflict from './handlebars/no-conflict';
11
12 // For compatibility and usage outside of module systems, make the Handlebars object a namespace
13 function create() {
14 let hb = new base.HandlebarsEnvironment();
15
16 Utils.extend(hb, base);
17 hb.SafeString = SafeString;
18 hb.Exception = Exception;
19 hb.Utils = Utils;
20 hb.escapeExpression = Utils.escapeExpression;
21
22 hb.VM = runtime;
23 hb.template = function(spec) {
24 return runtime.template(spec, hb);
25 };
26
27 return hb;
28 }
29
30 let inst = create();
31 inst.create = create;
32
33 noConflict(inst);
34
35 inst['default'] = inst;
36
37 export default inst;
38