class Slim::EmbeddedEngine::SassEngine

Sass engine which supports :pretty option

Protected Instance Methods

tilt_render(tilt_engine, tilt_options, text) click to toggle source
# File lib/slim/embedded_engine.rb, line 118
def tilt_render(tilt_engine, tilt_options, text)
  text = tilt_engine.new(tilt_options.merge(
    :style => (options[:pretty] ? :expanded : :compressed), :cache => false)) { text }.render
  text.chomp!
  [:static, options[:pretty] ? "\n#{text}\n" : text]
end