Skip to content

Instantly share code, notes, and snippets.

@morewry
Last active October 1, 2015 21:07
Show Gist options
  • Save morewry/9522955 to your computer and use it in GitHub Desktop.
Save morewry/9522955 to your computer and use it in GitHub Desktop.
"Ad Hoc" Compass plugins config.rb, potentially useful for dealing with compass plugins through bower instead of as gems. Set up a plugin similarly to https://github.com/Team-Sass/Compass-Extension-Template
# make ad hoc compass frameworks behave (show up in list, be import-able like normal)
# custom vars
thisplugin_dir = (yours)
# compass config
extensions_dir = (yours)
extensions_path = project_path + extensions_dir
additional_import_paths = [extensions_dir, extensions_dir + thisplugin_dir + 'stylesheets']
# wrap require
begin
require "thisplugin"
rescue LoadError
require File.join(extensions_path, thisplugin_dir + '/lib/thisplugin.rb')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment