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.js

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

42 lines 977 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import runtime from './handlebars.runtime';
2
3 // Compiler imports
4 import AST from './handlebars/compiler/ast';
5 import { parser as Parser, parse } from './handlebars/compiler/base';
6 import { Compiler, compile, precompile } from './handlebars/compiler/compiler';
7 import JavaScriptCompiler from './handlebars/compiler/javascript-compiler';
8 import Visitor from './handlebars/compiler/visitor';
9
10 import noConflict from './handlebars/no-conflict';
11
12 let _create = runtime.create;
13 function create() {
14 let hb = _create();
15
16 hb.compile = function(input, options) {
17 return compile(input, options, hb);
18 };
19 hb.precompile = function(input, options) {
20 return precompile(input, options, hb);
21 };
22
23 hb.AST = AST;
24 hb.Compiler = Compiler;
25 hb.JavaScriptCompiler = JavaScriptCompiler;
26 hb.Parser = Parser;
27 hb.parse = parse;
28
29 return hb;
30 }
31
32 let inst = create();
33 inst.create = create;
34
35 noConflict(inst);
36
37 inst.Visitor = Visitor;
38
39 inst['default'] = inst;
40
41 export default inst;
42