bootstrap-for-ember icon indicating copy to clipboard operation
bootstrap-for-ember copied to clipboard

Remove need for Handlebars.runtime.js

Open knownasilya opened this issue 10 years ago • 17 comments

Since most of the items already have the template precompiled code, Ember.Handlebars.compile shouldn't be used (like in the core). This will allow for users of this framework to have performance benefits.

knownasilya avatar Jan 20 '14 18:01 knownasilya

@knownasilya I guess you meant remove need for Handlebars.js and not the runtime, It's more important for me to clean this up to avoid the need to include the full handlebar js instead of the runtime,

I'll leave this issue open and will try to work on it on the next version,

Thanks.

asaf avatar Jan 21 '14 08:01 asaf

Yes that is what I meant, and I'm glad you're aware of the issue :) On Jan 21, 2014 3:40 AM, "Asaf Shakarchi" [email protected] wrote:

@knownasilya https://github.com/knownasilya I guess you meant remove need for Handlebars.js and not the runtime, It's more important for me to clean this up to avoid the need to include the full handlebar js instead of the runtime,

I'll leave this issue open and will try to work on it on the next version,

Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/ember-addons/bootstrap-for-ember/issues/87#issuecomment-32829755 .

knownasilya avatar Jan 21 '14 12:01 knownasilya

Is this planned to be fixed in the next release? The problem appears to be on line 404 of bs-core.max.js.

derekbassett avatar Mar 20 '14 22:03 derekbassett

bump bump... Any movement on this? Would be very helpful.

willt avatar Apr 10 '14 16:04 willt

@knownasilya this seems to me priority 1 issue.. any news on this?

ioleo avatar May 03 '14 08:05 ioleo

Started using these components and discovered this as well when attempting to build a prod version. Shouldn't be too hard to replace the line with the compiled version.

+1

cah-brian-gantzler avatar May 11 '14 17:05 cah-brian-gantzler

I had many errors till i recognized that i used the runtime instead of the full version, kinda annoying to use the full handlebar (too big and slow)

ComboStyle avatar Jun 06 '14 20:06 ComboStyle

Assigned to the next version.

asaf avatar Jun 07 '14 12:06 asaf

Should be resolved by #154

asaf avatar Aug 01 '14 05:08 asaf

This fixes the dependency for bs-core, however it looks like there are still several components, e.g. app/scripts/components/BsPill.coffee, that rely on Ember.Handlebars.compile(...)

Do those need to be updated as well?

Stanback avatar Aug 01 '14 17:08 Stanback

The same issue with BsTabs.

avanov avatar Aug 20 '14 11:08 avanov

Hi guys, any idea of when this milestone will be finished so that you can release this fix within the next version?

Many thanks

amedrz avatar Oct 21 '14 15:10 amedrz

Likewise. This bug has broken my application in production for many weeks.

ballPointPenguin avatar Oct 22 '14 03:10 ballPointPenguin

Agreed, how did #154 even seem to resolve this issue?

drewcovi avatar Oct 25 '14 15:10 drewcovi

Аs a workaround include the full version of Handlebars and not only runtime.

This is somewhat non-standard and discouraged, but suppose that due to a requirement in your application that you need to use the full version of Handlebars even in the production environment. You would simply provide the path to the EmberApp constructor:

 var app = new EmberApp({
   vendorFiles: {
     'handlebars.js': {
       production: 'bower_components/handlebars/handlebars.js'
     }
   }
 });

unionups avatar Oct 26 '14 08:10 unionups

@asaf I don't understand why this issue was ever closed. That referenced merge only added ItemPaneView.

drewcovi avatar Jan 09 '15 19:01 drewcovi

@drewcovi Reopened, if someone can send a PR it'll be welcomed.

10x

asaf avatar Jan 13 '15 20:01 asaf