-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13601 from rwjblue/export-ember-htmlbars-with-cor…
…rect-engine Ensure Ember.HTMLBars is reexported based on rendering engine.
- Loading branch information
Showing
2 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |