meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
810 stars 126 forks source link

issue with eco dependency #71

Closed pravi closed 9 years ago

pravi commented 9 years ago

I am packaging backbone-on-rails for debian and it has a dependency on eco (do you really use it?) but I cannot generate eco.js from the coffee script sources (because any minified javascript should be generated on debian from their sources and eco.js provided by eco-source is minified).

see https://lists.debian.org/debian-ruby/2015/06/msg00038.html for errors. Can you suggest how to proceed?

meleyal commented 9 years ago

eco is the templating language when using coffeescript, while ejs is used for javascript. Currently the gem relies on both ejs and eco as I couldn't find a way to conditionally depend on one or the other.

eco.js is minified here: https://github.com/sstephenson/eco/blob/0d60edbf4ee76beaade73368de412b5fee7edba7/Cakefile#L80

The best I can suggest is to open an issue / pull request to also include an unminified version of eco.js in the build step.

pravi commented 9 years ago

Thanks for the reply. Last commit of eco is in 2012 so I don't know if I can get that change done there.

pravi commented 9 years ago

https://github.com/sstephenson/eco/issues/66 Can we use ECT?

meleyal commented 9 years ago

The syntax looks compatible, but apparently no sprockets support :( https://github.com/baryshev/ect/issues/32