39265bafc3
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.
20 lines
547 B
Ruby
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)
|
|
|