Sha256: e658d7da1f08484616a9abd103b029ec77439666d09b1807d7618506fde929fc

Contents?: true

Size: 463 Bytes

Versions: 14

Compression:

Stored size: 463 Bytes

Contents

include_set Type::Css

format do
  view :core, cache: :never do
    compile_scss(process_content(_render_raw))
  end

  def compile_scss scss, style=:expanded
    Sass.compile scss, style: style
  rescue Sass::SyntaxError => e
    raise Card::Error, "Sass::SyntaxError (#{card.name}:#{e.sass_line}):" \
                       "#{scss.lines[e.sass_line - 1]}\n" \
                       "#{e.message}"
  end
end

format :html do
  def ace_mode
    :scss
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
card-1.97.0 mod/machines/set/type/scss.rb
card-1.96.8 mod/machines/set/type/scss.rb
card-1.96.7 mod/machines/set/type/scss.rb
card-1.96.6 mod/machines/set/type/scss.rb
card-1.96.5 mod/machines/set/type/scss.rb
card-1.96.4 mod/machines/set/type/scss.rb
card-1.96.3 mod/machines/set/type/scss.rb
card-1.96.2 mod/machines/set/type/scss.rb
card-1.96.1 mod/machines/set/type/scss.rb
card-1.96.0 mod/machines/set/type/scss.rb
card-1.95.3 mod/machines/set/type/scss.rb
card-1.95.2 mod/machines/set/type/scss.rb
card-1.95.1 mod/machines/set/type/scss.rb
card-1.95.0 mod/machines/set/type/scss.rb