# Code coverage report for dist/cjs/handlebars.js

## Statements: 100% (25 / 25) Branches: 100% (0 / 0) Functions: 100% (3 / 3) Lines: 100% (25 / 25) Ignored: none

All files » dist/cjs/ » handlebars.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39

    1

    1
    1
    1
    1
    1
    1
    1

    1
    1
    504

    504
    82

    504
    409

    504
    504
    504
    504
    504

    504

    1
    1

    1

    1"use strict";
    /*globals Handlebars: true */
    var Handlebars = require("./handlebars.runtime")["default"];

    // Compiler imports
    var AST = require("./handlebars/compiler/ast")["default"];
    var Parser = require("./handlebars/compiler/base").parser;
    var parse = require("./handlebars/compiler/base").parse;
    var Compiler = require("./handlebars/compiler/compiler").Compiler;
    var compile = require("./handlebars/compiler/compiler").compile;
    var precompile = require("./handlebars/compiler/compiler").precompile;
    var JavaScriptCompiler = require("./handlebars/compiler/javascript-compiler")["default"];

    var _create = Handlebars.create;
    var create = function() {
      var hb = _create();

      hb.compile = function(input, options) {
        return compile(input, options, hb);
      };
      hb.precompile = function (input, options) {
        return precompile(input, options, hb);
      };

      hb.AST = AST;
      hb.Compiler = Compiler;
      hb.JavaScriptCompiler = JavaScriptCompiler;
      hb.Parser = Parser;
      hb.parse = parse;

      return hb;
    };

    Handlebars = create();
    Handlebars.create = create;

    Handlebars['default'] = Handlebars;

    exports["default"] = Handlebars;