Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / handlebars / lib / handlebars.js
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;