GoBoundless / spar

Single Page Application Rocketship
http://goboundless.github.com/spar/
MIT License
164 stars 14 forks source link

load config.rb from project, if it exists. #23

Closed botandrose closed 10 years ago

botandrose commented 11 years ago

Howdy,

I had a need to further configure the sprockets environment, specifically, adding an additional engine:

Spar.sprockets.register_engine '.emblem', Emblem::Sprockets::Template

The question is, where to put this? At first, I added it to my config.ru. That worked fine until it was time to deploy, or test with Capybara. After some experimentation, this is the best I could come up with. I'm not super in love with it, but its simple, and it works. What do you think?