Skip to content

Commit

Permalink
Merge pull request #13601 from rwjblue/export-ember-htmlbars-with-cor…
Browse files Browse the repository at this point in the history
…rect-engine

Ensure Ember.HTMLBars is reexported based on rendering engine.
  • Loading branch information
mixonic committed Jun 4, 2016
2 parents b0332ef + abf42f1 commit 235a6cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
11 changes: 0 additions & 11 deletions packages/ember-htmlbars/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@
*/
import Ember from 'ember-metal/core'; // reexports

import {
precompile,
compile,
template,
registerPlugin
} from 'ember-htmlbars-template-compiler';

import makeBoundHelper from 'ember-htmlbars/system/make_bound_helper';

import {
Expand Down Expand Up @@ -144,10 +137,6 @@ registerHelper('hash', hashHelper);
registerHelper('query-params', queryParamsHelper);

Ember.HTMLBars = {
template: template,
compile: compile,
precompile: precompile,
makeBoundHelper: makeBoundHelper,
registerPlugin: registerPlugin,
DOMHelper
};
12 changes: 7 additions & 5 deletions packages/ember-template-compiler/lib/compat.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Ember from 'ember-metal/core'; // reexports
import compiler from './compiler';

var EmberHandlebars = Ember.Handlebars = Ember.Handlebars || {};
let EmberHandlebars = Ember.Handlebars = Ember.Handlebars || {};
let EmberHTMLBars = Ember.HTMLBars = Ember.HTMLBars || {};

let { precompile, compile, template } = compiler();
let { precompile, compile, template, registerPlugin } = compiler();

EmberHandlebars.precompile = precompile;
EmberHandlebars.compile = compile;
EmberHandlebars.template = template;
EmberHTMLBars.precompile = EmberHandlebars.precompile = precompile;
EmberHTMLBars.compile = EmberHandlebars.compile = compile;
EmberHTMLBars.template = EmberHandlebars.template = template;
EmberHTMLBars.registerPlugin = registerPlugin;

0 comments on commit 235a6cb

Please sign in to comment.