sass-rails 5.1.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81b377677315439a968f5d8c1fe884680e40681853aa6ce0059fec8f81a7561e
4
- data.tar.gz: fce2dc70c42fd35b13dd1310c6e7f48825143497bb98fde3d4ded15efa5b72fe
3
+ metadata.gz: d162298f6dcc547ef3c5e3e51d6d5bca7df731e8161737f03b01b05e3c77aba3
4
+ data.tar.gz: 2f10eb26a35786fa327e5ede671c6e487881c6bf85cce2eea5481aec63ab99db
5
5
  SHA512:
6
- metadata.gz: 561d100c511ed762dec416a081117bb949833e2ffde2ea8fa984cfae44f4f432e3cb52f3f213c8b4c37fe365c50a77b8fbe04e26f48a4a12b7cc5f8fd074ffce
7
- data.tar.gz: 20b336c399d4907f64c95112a95ab912ce04575f8e3f153476e1b10d5d70dba4038d220baadbf4d408f509fe2c58cdde26c5250383ad52b011394c46afe90f65
6
+ metadata.gz: 4862c7852e9d3928e48ef3d8a314e8872557d94345a8a8845f6c3fc7f80e0166947c07fbf09d11505a86b3f8075d933f5576c45ef5d90eadcf0980707cbf549e
7
+ data.tar.gz: 75616f8708d8f20b2d32d84adf73d779c193c18d6ac7784a3d9ba10fc4309e7694dc39f09087daf6ec993357e363ebe2d2e3292160ae4e2944ed6e50f105a3da
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Christopher Eppstein
1
+ Copyright (c) 2011-2019 Christopher Eppstein
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -6,7 +6,9 @@ This gem provides official integration for Ruby on Rails projects with the Sass
6
6
 
7
7
  Since Rails 3.1, new Rails projects will be already configured to use Sass. If you are upgrading to Rails 3.1 you will need to add the following to your Gemfile:
8
8
 
9
- gem 'sass-rails'
9
+ ```ruby
10
+ gem 'sass-rails'
11
+ ```
10
12
 
11
13
  ## Configuration
12
14
 
@@ -30,12 +32,13 @@ can be found on the Sass Website with the following caveats:
30
32
  - `:line` - This is provided by the template handler.
31
33
 
32
34
  ### Example
33
-
34
- MyProject::Application.configure do
35
- config.sass.preferred_syntax = :sass
36
- config.sass.line_comments = false
37
- config.sass.cache = false
38
- end
35
+ ```ruby
36
+ MyProject::Application.configure do
37
+ config.sass.preferred_syntax = :sass
38
+ config.sass.line_comments = false
39
+ config.sass.cache = false
40
+ end
41
+ ```
39
42
 
40
43
  ## Important Note
41
44
 
@@ -98,4 +101,3 @@ If you need to test against local gems, use Bundler's gem :path option in the Ge
98
101
 
99
102
  * [![Travis CI](https://api.travis-ci.org/rails/sass-rails.svg)](http://travis-ci.org/rails/sass-rails)
100
103
  * [![Gem Version](https://badge.fury.io/rb/sass-rails.svg)](http://badge.fury.io/rb/sass-rails)
101
- * [![Dependencies](https://gemnasium.com/rails/sass-rails.svg)](https://gemnasium.com/rails/sass-rails)
@@ -1 +1 @@
1
- require 'sass/rails'
1
+ require 'sassc/rails'
@@ -1,11 +1 @@
1
- module Sass
2
- module Rails
3
- autoload :Logger, 'sass/rails/logger'
4
- end
5
- end
6
-
7
- require 'sass/rails/version'
8
- require 'sass/rails/helpers'
9
- require 'sass/rails/importer'
10
- require 'sass/rails/template'
11
- require 'sass/rails/railtie'
1
+ require 'sassc/rails'
@@ -1,147 +1,5 @@
1
- require 'active_support/deprecation/reporting'
2
- require 'sass'
3
- require 'sprockets/sass_importer'
4
- require 'tilt'
1
+ # frozen_string_literal: true
5
2
 
6
- module Sass
7
- module Rails
8
- class SassImporter < Sass::Importers::Filesystem
9
- module Globbing
10
- GLOB = /(\A|\/)(\*|\*\*\/\*)\z/
3
+ require "active_support/deprecation"
11
4
 
12
- def find_relative(name, base, options)
13
- if options[:sprockets] && m = name.match(GLOB)
14
- path = name.sub(m[0], "")
15
- base = File.expand_path(path, File.dirname(base))
16
- glob_imports(base, m[2], options)
17
- else
18
- super
19
- end
20
- end
21
-
22
- def find(name, options)
23
- # globs must be relative
24
- return if name =~ GLOB
25
- super
26
- end
27
-
28
- private
29
- def glob_imports(base, glob, options)
30
- contents = ""
31
- context = options[:sprockets][:context]
32
- each_globbed_file(base, glob, context) do |filename|
33
- next if filename == options[:filename]
34
- contents << "@import #{filename.inspect};\n"
35
- end
36
- return nil if contents == ""
37
- Sass::Engine.new(contents, options.merge(
38
- :filename => base,
39
- :importer => self,
40
- :syntax => :scss
41
- ))
42
- end
43
-
44
- def each_globbed_file(base, glob, context)
45
- raise ArgumentError unless glob == "*" || glob == "**/*"
46
-
47
- exts = extensions.keys.map { |ext| Regexp.escape(".#{ext}") }.join("|")
48
- sass_re = Regexp.compile("(#{exts})$")
49
-
50
- context.depend_on(base)
51
-
52
- Dir["#{base}/#{glob}"].sort.each do |path|
53
- if File.directory?(path)
54
- context.depend_on(path)
55
- elsif sass_re =~ path
56
- yield path
57
- end
58
- end
59
- end
60
- end
61
-
62
- module ERB
63
- def extensions
64
- {
65
- 'css.erb' => :scss_erb,
66
- 'scss.erb' => :scss_erb,
67
- 'sass.erb' => :sass_erb
68
- }.merge(super)
69
- end
70
-
71
- def erb_extensions
72
- {
73
- :scss_erb => :scss,
74
- :sass_erb => :sass
75
- }
76
- end
77
-
78
- def find_relative(*args)
79
- process_erb_engine(super)
80
- end
81
-
82
- def find(*args)
83
- process_erb_engine(super)
84
- end
85
-
86
- private
87
- def process_erb_engine(engine)
88
- if engine && engine.options[:sprockets] && syntax = erb_extensions[engine.options[:syntax]]
89
- template = Tilt::ERBTemplate.new(engine.options[:filename])
90
- contents = template.render(engine.options[:sprockets][:context], {})
91
-
92
- Sass::Engine.new(contents, engine.options.merge(:syntax => syntax))
93
- else
94
- engine
95
- end
96
- end
97
- end
98
-
99
- module Deprecated
100
- def extensions
101
- {
102
- 'css.scss' => :scss,
103
- 'css.sass' => :sass,
104
- 'css.scss.erb' => :scss_erb,
105
- 'css.sass.erb' => :sass_erb
106
- }.merge(super)
107
- end
108
-
109
- def find_relative(*args)
110
- deprecate_extra_css_extension(super)
111
- end
112
-
113
- def find(*args)
114
- deprecate_extra_css_extension(super)
115
- end
116
-
117
- private
118
- def deprecate_extra_css_extension(engine)
119
- if engine && filename = engine.options[:filename]
120
- if filename.end_with?('.css.scss')
121
- msg = "Extra .css in SCSS file is unnecessary. Rename #{filename} to #{filename.sub('.css.scss', '.scss')}."
122
- elsif filename.end_with?('.css.sass')
123
- msg = "Extra .css in SASS file is unnecessary. Rename #{filename} to #{filename.sub('.css.sass', '.sass')}."
124
- elsif filename.end_with?('.css.scss.erb')
125
- msg = "Extra .css in SCSS/ERB file is unnecessary. Rename #{filename} to #{filename.sub('.css.scss.erb', '.scss.erb')}."
126
- elsif filename.end_with?('.css.sass.erb')
127
- msg = "Extra .css in SASS/ERB file is unnecessary. Rename #{filename} to #{filename.sub('.css.sass.erb', '.sass.erb')}."
128
- end
129
-
130
- ActiveSupport::Deprecation.warn(msg) if msg
131
- end
132
-
133
- engine
134
- end
135
- end
136
-
137
- include Deprecated
138
- include ERB
139
- include Globbing
140
-
141
- # Allow .css files to be @import'd
142
- def extensions
143
- { 'css' => :scss }.merge(super)
144
- end
145
- end
146
- end
147
- end
5
+ ActiveSupport::Deprecation.warn "Sass::Rails::Importer has been removed, please use SassC::Rails::Importer instead."
@@ -1,22 +1,5 @@
1
- require 'sass'
2
- require 'sass/logger'
1
+ # frozen_string_literal: true
3
2
 
4
- module Sass
5
- module Rails
6
- class Logger < Sass::Logger::Base
7
- def _log(level, message)
3
+ require "active_support/deprecation"
8
4
 
9
- case level
10
- when :trace, :debug
11
- ::Rails.logger.debug message
12
- when :warn
13
- ::Rails.logger.warn message
14
- when :error
15
- ::Rails.logger.error message
16
- when :info
17
- ::Rails.logger.info message
18
- end
19
- end
20
- end
21
- end
22
- end
5
+ ActiveSupport::Deprecation.warn "Sass::Rails::Logger has been removed, please stop requiring sass/rails/logger."
@@ -1,94 +1 @@
1
- require 'sass'
2
- require 'active_support/core_ext/class/attribute'
3
- require 'sprockets/railtie'
4
-
5
- module Sass::Rails
6
- class Railtie < ::Rails::Railtie
7
- config.sass = ActiveSupport::OrderedOptions.new
8
-
9
- # Establish static configuration defaults
10
- # Emit scss files during stylesheet generation of scaffold
11
- config.sass.preferred_syntax = :scss
12
- # Write sass cache files for performance
13
- config.sass.cache = true
14
- # Read sass cache files for performance
15
- config.sass.read_cache = true
16
- # Display line comments above each selector as a debugging aid
17
- config.sass.line_comments = true
18
- # Initialize the load paths to an empty array
19
- config.sass.load_paths = []
20
- # Send Sass logs to Rails.logger
21
- config.sass.logger = Sass::Rails::Logger.new
22
-
23
- # Set the default stylesheet engine
24
- # It can be overridden by passing:
25
- # --stylesheet_engine=sass
26
- # to the rails generate command
27
- config.app_generators.stylesheet_engine config.sass.preferred_syntax
28
-
29
- if config.respond_to?(:annotations)
30
- config.annotations.register_extensions("scss", "sass") { |annotation| /\/\/\s*(#{annotation}):?\s*(.*)$/ }
31
- end
32
-
33
- # Remove the sass middleware if it gets inadvertently enabled by applications.
34
- config.after_initialize do |app|
35
- app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack)
36
- end
37
-
38
- initializer :setup_sass, group: :all do |app|
39
- # Only emit one kind of syntax because though we have registered two kinds of generators
40
- syntax = app.config.sass.preferred_syntax.to_sym
41
- alt_syntax = syntax == :sass ? "scss" : "sass"
42
- app.config.generators.hide_namespace alt_syntax
43
-
44
- # Override stylesheet engine to the preferred syntax
45
- config.app_generators.stylesheet_engine syntax
46
-
47
- # Set the sass cache location
48
- config.sass.cache_location = File.join(Rails.root, "tmp/cache/sass")
49
-
50
- # Establish configuration defaults that are evironmental in nature
51
- if config.sass.full_exception.nil?
52
- # Display a stack trace in the css output when in development-like environments.
53
- config.sass.full_exception = app.config.consider_all_requests_local
54
- end
55
-
56
- config.assets.configure do |env|
57
- if env.respond_to?(:register_engine)
58
- args = ['.sass', Sass::Rails::SassTemplate]
59
- args << { silence_deprecation: true } if env.method(:register_engine).arity.abs > 2
60
- env.register_engine(*args)
61
-
62
- args = ['.scss', Sass::Rails::ScssTemplate]
63
- args << { silence_deprecation: true } if env.method(:register_engine).arity.abs > 2
64
- env.register_engine(*args)
65
- end
66
-
67
- if env.respond_to?(:register_transformer)
68
- env.register_transformer 'text/sass', 'text/css',
69
- Sprockets::SassProcessor.new(importer: SassImporter, sass_config: app.config.sass)
70
- env.register_transformer 'text/scss', 'text/css',
71
- Sprockets::ScssProcessor.new(importer: SassImporter, sass_config: app.config.sass)
72
- end
73
-
74
- env.context_class.class_eval do
75
- class_attribute :sass_config
76
- self.sass_config = app.config.sass
77
- end
78
- end
79
-
80
- Sass.logger = app.config.sass.logger
81
- end
82
-
83
- initializer :setup_compression, group: :all do |app|
84
- if Rails.env.development?
85
- # Use expanded output instead of the sass default of :nested unless specified
86
- app.config.sass.style ||= :expanded
87
- else
88
- # config.assets.css_compressor may be set to nil in non-dev environments.
89
- # otherwise, the default is sass compression.
90
- app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor)
91
- end
92
- end
93
- end
94
- end
1
+ require 'sassc/rails/railtie'
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Rails
3
- VERSION = "5.1.0"
3
+ VERSION = "6.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wycats
@@ -12,107 +12,25 @@ cert_chain: []
12
12
  date: 2019-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: railties
15
+ name: sassc-rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: 5.2.0
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: 5.2.0
28
- - !ruby/object:Gem::Dependency
29
- name: sass
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '3.1'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
17
  requirements:
39
18
  - - "~>"
40
19
  - !ruby/object:Gem::Version
41
- version: '3.1'
42
- - !ruby/object:Gem::Dependency
43
- name: sprockets-rails
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
20
+ version: '2.1'
46
21
  - - ">="
47
22
  - !ruby/object:Gem::Version
48
- version: '2.0'
49
- - - "<"
50
- - !ruby/object:Gem::Version
51
- version: '4.0'
23
+ version: 2.1.1
52
24
  type: :runtime
53
25
  prerelease: false
54
26
  version_requirements: !ruby/object:Gem::Requirement
55
27
  requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: '2.0'
59
- - - "<"
60
- - !ruby/object:Gem::Version
61
- version: '4.0'
62
- - !ruby/object:Gem::Dependency
63
- name: sprockets
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '2.8'
69
- - - "<"
70
- - !ruby/object:Gem::Version
71
- version: '4.0'
72
- type: :runtime
73
- prerelease: false
74
- version_requirements: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: '2.8'
79
- - - "<"
80
- - !ruby/object:Gem::Version
81
- version: '4.0'
82
- - !ruby/object:Gem::Dependency
83
- name: tilt
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '1.1'
89
- - - "<"
90
- - !ruby/object:Gem::Version
91
- version: '3'
92
- type: :runtime
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: '1.1'
99
- - - "<"
100
- - !ruby/object:Gem::Version
101
- version: '3'
102
- - !ruby/object:Gem::Dependency
103
- name: sqlite3
104
- requirement: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ">="
28
+ - - "~>"
107
29
  - !ruby/object:Gem::Version
108
- version: '0'
109
- type: :development
110
- prerelease: false
111
- version_requirements: !ruby/object:Gem::Requirement
112
- requirements:
30
+ version: '2.1'
113
31
  - - ">="
114
32
  - !ruby/object:Gem::Version
115
- version: '0'
33
+ version: 2.1.1
116
34
  description: Sass adapter for the Rails asset pipeline.
117
35
  email:
118
36
  - wycats@gmail.com
@@ -123,21 +41,11 @@ extra_rdoc_files: []
123
41
  files:
124
42
  - MIT-LICENSE
125
43
  - README.md
126
- - lib/rails/generators/sass/assets/assets_generator.rb
127
- - lib/rails/generators/sass/assets/templates/stylesheet.sass
128
- - lib/rails/generators/sass/scaffold/scaffold_generator.rb
129
- - lib/rails/generators/sass_scaffold.rb
130
- - lib/rails/generators/scss/assets/assets_generator.rb
131
- - lib/rails/generators/scss/assets/templates/stylesheet.scss
132
- - lib/rails/generators/scss/scaffold/scaffold_generator.rb
133
44
  - lib/sass-rails.rb
134
45
  - lib/sass/rails.rb
135
- - lib/sass/rails/cache_store.rb
136
- - lib/sass/rails/helpers.rb
137
46
  - lib/sass/rails/importer.rb
138
47
  - lib/sass/rails/logger.rb
139
48
  - lib/sass/rails/railtie.rb
140
- - lib/sass/rails/template.rb
141
49
  - lib/sass/rails/version.rb
142
50
  homepage: https://github.com/rails/sass-rails
143
51
  licenses:
@@ -151,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
59
  requirements:
152
60
  - - ">="
153
61
  - !ruby/object:Gem::Version
154
- version: 2.4.0
62
+ version: '0'
155
63
  required_rubygems_version: !ruby/object:Gem::Requirement
156
64
  requirements:
157
65
  - - ">="
@@ -1,13 +0,0 @@
1
- require "rails/generators/named_base"
2
-
3
- module Sass
4
- module Generators
5
- class AssetsGenerator < ::Rails::Generators::NamedBase
6
- source_root File.expand_path("../templates", __FILE__)
7
-
8
- def copy_sass
9
- template "stylesheet.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.sass")
10
- end
11
- end
12
- end
13
- end
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the <%= name %> controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass here: http://sass-lang.com/
@@ -1,9 +0,0 @@
1
- require "rails/generators/sass_scaffold"
2
-
3
- module Sass
4
- module Generators
5
- class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase
6
- def syntax() :sass end
7
- end
8
- end
9
- end
@@ -1,15 +0,0 @@
1
- require "sass/css"
2
- require "rails/generators/named_base"
3
-
4
- module Sass
5
- module Generators
6
- class ScaffoldBase < ::Rails::Generators::NamedBase
7
- def copy_stylesheet
8
- dir = ::Rails::Generators::ScaffoldGenerator.source_root
9
- file = File.join(dir, "scaffold.css")
10
- converted_contents = ::Sass::CSS.new(File.read(file)).render(syntax)
11
- create_file "app/assets/stylesheets/scaffolds.#{syntax}", converted_contents
12
- end
13
- end
14
- end
15
- end
@@ -1,13 +0,0 @@
1
- require "rails/generators/named_base"
2
-
3
- module Scss
4
- module Generators
5
- class AssetsGenerator < ::Rails::Generators::NamedBase
6
- source_root File.expand_path("../templates", __FILE__)
7
-
8
- def copy_scss
9
- template "stylesheet.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.scss")
10
- end
11
- end
12
- end
13
- end
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the <%= name %> controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,10 +0,0 @@
1
- require "rails/generators/sass_scaffold"
2
-
3
- module Scss
4
- module Generators
5
- class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase
6
- def syntax() :scss end
7
- end
8
- end
9
- end
10
-
@@ -1,31 +0,0 @@
1
- require 'sass'
2
-
3
- module Sass
4
- module Rails
5
- class CacheStore < ::Sass::CacheStores::Base
6
- attr_reader :environment
7
-
8
- def initialize(environment)
9
- @environment = environment
10
- end
11
-
12
- def _store(key, version, sha, contents)
13
- environment.cache_set("sass/#{key}", {:version => version, :sha => sha, :contents => contents})
14
- end
15
-
16
- def _retrieve(key, version, sha)
17
- if obj = environment.cache_get("sass/#{key}")
18
- return unless obj[:version] == version
19
- return unless obj[:sha] == sha
20
- obj[:contents]
21
- else
22
- nil
23
- end
24
- end
25
-
26
- def path_to(key)
27
- key
28
- end
29
- end
30
- end
31
- end
@@ -1,13 +0,0 @@
1
- require 'sass'
2
- require 'sprockets/sass_functions'
3
-
4
- module Sprockets
5
- module SassFunctions
6
- remove_method :asset_data_url if method_defined?(:asset_data_url)
7
- def asset_data_url(path)
8
- Sass::Script::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
9
- end
10
- end
11
- end
12
-
13
- ::Sass::Script::Functions.send :include, Sprockets::SassFunctions
@@ -1,72 +0,0 @@
1
- require 'sass'
2
- require 'sass/rails/cache_store'
3
- require 'sass/rails/helpers'
4
- require 'sprockets/sass_functions'
5
- require 'tilt'
6
-
7
- module Sass
8
- module Rails
9
- class SassTemplate < Tilt::Template
10
- def self.default_mime_type
11
- 'text/css'
12
- end
13
-
14
- def self.engine_initialized?
15
- true
16
- end
17
-
18
- def initialize_engine
19
- end
20
-
21
- def prepare
22
- end
23
-
24
- def syntax
25
- :sass
26
- end
27
-
28
- def evaluate(context, locals, &block)
29
- cache_store = CacheStore.new(context.environment)
30
-
31
- options = {
32
- :filename => eval_file,
33
- :line => line,
34
- :syntax => syntax,
35
- :cache_store => cache_store,
36
- :importer => importer_class.new(context.pathname.to_s),
37
- :load_paths => context.environment.paths.map { |path| importer_class.new(path.to_s) },
38
- :sprockets => {
39
- :context => context,
40
- :environment => context.environment
41
- }
42
- }
43
-
44
- sass_config = context.sass_config.merge(options)
45
-
46
- engine = ::Sass::Engine.new(data, sass_config)
47
- css = engine.render
48
-
49
- engine.dependencies.map do |dependency|
50
- context.depend_on(dependency.options[:filename])
51
- end
52
-
53
- css
54
- rescue ::Sass::SyntaxError => e
55
- context.__LINE__ = e.sass_backtrace.first[:line]
56
- raise e
57
- end
58
-
59
- private
60
-
61
- def importer_class
62
- SassImporter
63
- end
64
- end
65
-
66
- class ScssTemplate < SassTemplate
67
- def syntax
68
- :scss
69
- end
70
- end
71
- end
72
- end