Sha256: b58f344f892c9f835ce7ac0cc9e7a2b7cff0d7dac08f21fbbee53c8e7a77c97d

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

include_set Type::Css

format do
  view :core do |_args|
    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}): " \
                       "#{e.message}"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.19.6 mod/machines/set/type/scss.rb
card-1.19.5 mod/machines/set/type/scss.rb
card-1.19.4 mod/machines/set/type/scss.rb
card-1.19.3 mod/machines/set/type/scss.rb
card-1.19.2 mod/machines/set/type/scss.rb
card-1.19.1 mod/machines/set/type/scss.rb
card-1.19.0 mod/machines/set/type/scss.rb