Example

Options

Output compression is now controlled via the config.assets.compress boolean option instead of through the :style option.

:never_update - This option is not supported. Instead set config.assets.enabled = false

:always_update - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files.

:always_check - This option is not supported. Sprockets always checks in development.

:syntax - This is determined by the file's extensions.

:filename - This is determined by the file's name.

:line - This is provided by the template handler.

Features

Glob Imports. When in rails, there is a special import syntax that allows you to
glob imports relative to the folder of the stylesheet that is doing the importing.
E.g. @import "mixins/*" will import all the files in the mixins folder and
@import "mixins/**/*" will import all the files in the mixins tree.
Any valid ruby glob may be used. The imports are sorted alphabetically.
NOTE: It is recommended that you only use this when importing pure library
files (containing mixins and variables) because it is difficult to control the
cascade ordering for imports that contain styles using this approach.

Asset Helpers. When using the asset pipeline, paths to assets must be rewritten.
When referencing assets use the following asset helpers: