compass-config
A Compass plugin for accessing the Compass configuration properties inside your scss/sass files.
Installation
gem install compass-configTo load the plugin, simply require it at the top of your configuration file:
require 'compass-config'Next, import the _compass-config.scss partial into your stylesheets:
@import 'compass-config';Example usage
This plugins registers a function, x-config, which allows you to fetch any of
the Compass configuration properties. It accepts the property name as a single
parameter and returns a string representation of its corresponding value.
e.g.:
$environment: x-config('environment');
@if $environment == 'development' {
// development only styles
}Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request