How to use the bem-xjst.compile function in bem-xjst

To help you get started, we’ve selected a few bem-xjst examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vkz / bemhtml-syntax / test / common.js View on Github external
function toHtml(source, input) {
  return bemxjst.compile(ibem + source, {}).apply.call(input);
}
common.toHtml;
github vkz / bemhtml-syntax / lib / bp.js View on Github external
match: function (json) {
        var srcjs = compat.transpile(this.src),
            compiled = bemxjst.compile(srcjs, {});
        return beautifyHtml(compiled.apply.call (json));
    }
};

bem-xjst

Declarative Template Engine for the browser and server

MPL-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis