Sha256: 2e8a629e58db294fed9d9b6f28ad5edb7733d889d20c641f6a2886050f69aa4f

Contents?: true

Size: 497 Bytes

Versions: 13

Compression:

Stored size: 497 Bytes

Contents

# Fixes bug in middleman
module Middleman
  # Renderers
  module Renderers
    # Sass
    module Sass
      # Template
      class SassPlusCSSFilenameTemplate < ::Tilt::SassTemplate
        def evaluate(context, _)
          @context ||= context
          @engine = ::Sass::Engine.new(data, sass_options)

          begin
            @engine.render
          rescue ::Sass::SyntaxError => e
            ::Sass::SyntaxError.exception_to_css(e)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
middleman-presentation-core-0.17.7 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.17.6 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.17.5 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.17.2 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.17.1 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.17.0 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.3 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.2 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.0 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.0.rc2 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.0.rc1 lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.0.beta lib/middleman-presentation-core/overwrite_sass.rb
middleman-presentation-core-0.16.0.alpha lib/middleman-presentation-core/overwrite_sass.rb