codebrew / backbone-rails

Easily use backbone.js with rails 3.1
MIT License
1.62k stars 255 forks source link

Add support for (decaffeinated) JavaScript? #121

Open teleological opened 12 years ago

teleological commented 12 years ago

This commit enables backbone-rails generators to produce JavaScript when the javascript_engine generator option is set to :js. Coffee-rails sets javascript_engine to :coffee, although it can be overridden in an initializer:

Rails.application.config.generators do |g| 
  g.javascript_engine :js 
end

Is this something you'd be interested in merging?

benben commented 12 years ago

Hi @teleological, Hi @ryanfitz

I noticed the same behavior and would really appreciate to see this merged.

Thanks,

ben

arg commented 11 years ago

+1

wemakeweb commented 11 years ago

+1

docunext commented 11 years ago

+1

benevolentmadman commented 11 years ago

+1

mkelley33 commented 11 years ago

I love coffeescript, but the change is easy enough so I :+1:

andCulture commented 11 years ago

+1

westonplatter commented 10 years ago

@teleological could make this PR against http://westonplatter.com/railsy_backbone? I'd love to add it to the repo.

manusajith commented 10 years ago

@teleological can you please update this PR ?