compass/lib/compass.rb
Chris Eppstein 39265bafc3 Added a Sass Function called nest that performs a nesting operation on (possibly) comma delimited selectors and emits the result as a string.
For example:

nest(".foo", "a, em, b")

would render:

.foo a, .foo em, .foo b

The nest function can take any number of arguments and each argument can have any number of comma-delimited selectors.
2008-11-29 01:08:07 -08:00

20 lines
547 B
Ruby

require 'sass'
require File.join(File.dirname(__FILE__), 'sass_extensions')
['core_ext', 'version'].each do |file|
require File.join(File.dirname(__FILE__), 'compass', file)
end
module Compass
extend Compass::Version
def base_directory
File.expand_path(File.join(File.dirname(__FILE__), '..'))
end
module_function :base_directory
end
require File.join(File.dirname(__FILE__), 'compass', 'frameworks')
# make sure we're running inside Merb
require File.join(File.dirname(__FILE__), 'compass', 'merb') if defined?(Merb::Plugins)