chriseppstein/compass — Issue #659: feature-loaded variable for dependencies.
Author: scottkellum
Created: 2011-12-29 23:17:10+00:00
State: open

Add featrue-loaded variables for loading dependencies in add-on frameworks and other compass plugins. For example if border-radius is included then the variable $border-radius-loaded would be true.

```sass
$border-radius-loaded: false !default
@if $border-radius-loaded
border-radius(1em)
```

This way stylesheets can gracefully identify missing dependencies, load them if necessary, or compile with or without a fallback.

_______

I write a lot of functions in Sass that duplicate features in Compass. For frameworks it would be nice to identify what is loaded in Compass and ignore unnecessary/duplicate code.