middleman/middleman — pull request #537 by kematzy (2012-07-16 09:25:07+00:00)
Title: Add js and sass external assets paths

Hi,

Hopefully another addition you will consider to incorporate into Middleman.

When I work I keep a central repository of commonly used JS or SASS/SCSS files that I try to reference during the development of new projects.

Middleman did not support this functionality, so I have hacked it into existence.

Example usage:

# in config.rb
set :js_assets_path, [ "#{root}/assets/js/", "~/.js-repo/"]

set :sass_assets_path, [ "#{root}/assets/sass/", "~/.sass-repo/"]

I feel this is working better than symlinking or copying files to the project directory, so I hope you will consider adding these additions to the middleman-core, middleman-more and middleman-sprockets gems

Thanks for a great framework.

Kind regards,

Kematzy

Please Note! This addition depends upon code being present in middleman-sprockets, so please also view this branch: [ https://github.com/kematzy/middleman-sprockets/tree/add-js-external-assets-paths ]