Last active
October 1, 2015 21:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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