2018-01-17 00:05:15 +00:00
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import RSVP from 'rsvp';
|
|
|
|
|
|
|
|
export default Route.extend({
|
|
|
|
emberFreestyle: service(),
|
|
|
|
|
|
|
|
beforeModel() {
|
2019-03-26 07:46:44 +00:00
|
|
|
let emberFreestyle = this.emberFreestyle;
|
2018-01-17 00:05:15 +00:00
|
|
|
|
|
|
|
return emberFreestyle.ensureHljs().then(() => {
|
|
|
|
return RSVP.all([
|
|
|
|
emberFreestyle.ensureHljsLanguage('handlebars'),
|
|
|
|
emberFreestyle.ensureHljsLanguage('htmlbars'),
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|