class Slim::Embedded::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.rb, line 155 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 = text.chomp [:static, text] end