Method: Sass.compile
- Defined in:
- lib/sass.rb
.compile(contents, options = {})
Compile a Sass or SCSS string to CSS. Defaults to SCSS.
55 56 57 58 |
# File 'lib/sass.rb', line 55
def self.compile(contents, options = {})
options[:syntax] ||= :scss
Engine.new(contents, options).to_css
end
|