Q
Version: 1.0.1

Compass Environment Helpers

Helper functions for inspecting the environmental details of the current compilation

compass-env()

Returns the compass environment for the current compile. (`development` or `production`)

current-time([$format])

Returns the current time when the file is compiled. With no arguments, the time will be returned in the format of 08:37:48-06:00. However, if a $format string is provided, the time will be printed according to that format. Valid formats are any valid format string to Ruby's strftime function.

current-date([$format])

Returns the current date when the file is compiled. With no arguments, the date will be returned in the format of 2013-05-13. However, if a $format string is provided, the date will be printed according to that format. Valid formats are any valid format string to Ruby's strftime function.

current-source-file([$absolute])

Returns the file name of the Sass file that initiated the compilation. If the $absolute parameter is set to true, the full path of the stylesheet will be returned, otherwise it will be relative to the project's Sass directory. When the $absolute parameter is omitted, it defaults to false.

current-output-file([$absolute])

Returns the file name of the CSS file that is being generated. If the $absolute parameter is set to true, the full path of the stylesheet will be returned, otherwise it will be relative to the project's CSS stylesheets directory. When the $absolute parameter is omitted, it defaults to false.