middleman/middleman — Issue #291: How best to enable sprockets...
Author: kimptoc
Created: 2012-02-28 07:33:23+00:00
State: open

Hi,

Sorry, this is probably my ignorance of sprockets... and how its configured in Middleman

Sprockets seems to expect the javascript files under /source/javascripts, but middleman defaults to /source/js

To get it to work, I have renamed the directory "js" to "javascripts" and specified

set :js_dir, "javascripts"

Is this the best way to do this or should I be adding the "js" dir as an asset path for Sprockets, or some other way?

Thanks,
Chris