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