Sha256: 968bd756d2c8a499f344ad6053fb7b3b7beef5653d11f9cbd7d634174b728d36

Contents?: true

Size: 967 Bytes

Versions: 6

Compression:

Stored size: 967 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Type
# Set: All "Scss" cards
#
module Scss;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-style/set/type/scss.rb"; end
include_set Type::Css

module Format; module_parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat
  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

module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  def ace_mode
    :scss
  end
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card-mod-style/set/type/scss.rb ~~

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.101.5 tmpsets/set/mod019-card-mod-style/type/scss.rb
card-1.101.4 tmpsets/set/mod019-card-mod-style/type/scss.rb
card-1.101.3 tmpsets/set/mod019-card-mod-style/type/scss.rb
card-1.101.2 tmpsets/set/mod019-card-mod-style/type/scss.rb
card-1.101.1 tmpsets/set/mod019-card-mod-style/type/scss.rb
card-1.101.0 tmpsets/set/mod019-card-mod-style/type/scss.rb