alexspeller / emblem-rails

Emblem.js integration with rails asset pipeline
MIT License
34 stars 21 forks source link

Work without ember-rails #13

Closed gudata closed 11 years ago

gudata commented 11 years ago

Just an idea...

I have browse this simillar project and it seems that this is possible https://github.com/leshill/handlebars_assets

alan-andrade commented 11 years ago

I'm running into the same issue. I hope we can make emblem don't depend on Ember. A possible solution would be to inherit from a fresh Tilt::Template instead of Ember::Rails::Template ( I've might got the names wrong, but I hope you get the idea )

If we do that, then the problem would be to integrate emblem with Ember again. We need a way to know wether handlebars is being required when Ember is there or not.

alexspeller commented 11 years ago

I'm unlikely to work on it because I don't need it, but pull requests welcome

alan-andrade commented 11 years ago

I digged into it for a couple hours and I couldn't find an object that will help us to know if ember is being required. : ( Any ideas how we could make this happen ?

Thanks for the feedback

machty commented 11 years ago

Does this work for you? https://github.com/botandrose/emblem-sprockets

gudata commented 11 years ago

perfect, thanks!