Sha256: ca68f4c49889adf9a5ddd89856c3fe67464fab3f0ba16014685ca15d13097928

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

include_set Type::Css

format do
  view :core, cache: :never 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

5 entries across 5 versions & 1 rubygems

Version Path
card-1.20.4 mod/machines/set/type/scss.rb
card-1.20.3 mod/machines/set/type/scss.rb
card-1.20.2 mod/machines/set/type/scss.rb
card-1.20.1 mod/machines/set/type/scss.rb
card-1.20.0 mod/machines/set/type/scss.rb