Sha256: 78f96b895364c119efccd96e067c676a536ee5fc7731723c305216d1d152448a
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
include_set Abstract::Css format do view :core, cache: :never do compile_scss process_content(_render_raw) end def compile_scss scss, style=:expanded SassC::Engine.new(scss, style: style).render rescue SassC::SyntaxError => e raise Card::Error, "SassC::SyntaxError (#{card.name}:#{e.sass_backtrace}): #{e.message}" # "#{#scss.lines[e.sass_line - 1]}\n" \ end end format :html do def ace_mode :scss end end
Version data entries
5 entries across 5 versions & 1 rubygems