Sha256: 3b1d2deffaab6cb17a0927298d7cdbf4cf0b131d54613f9218b60a7344021604

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

import compile from './system/compile';
import { registerPlugin } from './system/compile-options';
import precompile from './system/precompile';
export default function setupGlobal(Ember) {
    let EmberHandlebars = Ember.Handlebars;
    if (!EmberHandlebars) {
        Ember.Handlebars = EmberHandlebars = {};
    }
    let EmberHTMLBars = Ember.HTMLBars;
    if (!EmberHTMLBars) {
        Ember.HTMLBars = EmberHTMLBars = {};
    }
    EmberHTMLBars.precompile = EmberHandlebars.precompile = precompile;
    EmberHTMLBars.compile = EmberHandlebars.compile = compile;
    EmberHTMLBars.registerPlugin = registerPlugin;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/ember-template-compiler/lib/compat.js
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/lib/compat.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/lib/compat.js