Sha256: 2aba36e59e82a2ceb23e8f4fe4ec4d68cf375a59418ea0f65d7cd6d24503c188

Contents?: true

Size: 257 Bytes

Versions: 55

Compression:

Stored size: 257 Bytes

Contents

require 'hamlit/filters/tilt'

module Hamlit
  module Filters
    class Scss < Filters::Tilt
      def compile(lines)
        ast = [:html, :tag, 'style', [:html, :attrs]]
        compile_with_tilt('scss', lines.join("\n"), ast)
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hamlit-1.7.2 lib/hamlit/filters/scss.rb
hamlit-1.7.1 lib/hamlit/filters/scss.rb
hamlit-1.7.0 lib/hamlit/filters/scss.rb
hamlit-1.6.7 lib/hamlit/filters/scss.rb
hamlit-1.6.6 lib/hamlit/filters/scss.rb
hamlit-1.6.5 lib/hamlit/filters/scss.rb
hamlit-1.6.4 lib/hamlit/filters/scss.rb
hamlit-1.6.3 lib/hamlit/filters/scss.rb
hamlit-1.6.2 lib/hamlit/filters/scss.rb
hamlit-1.6.1 lib/hamlit/filters/scss.rb
hamlit-1.6.0 lib/hamlit/filters/scss.rb
hamlit-1.5.9 lib/hamlit/filters/scss.rb
hamlit-1.5.8 lib/hamlit/filters/scss.rb
hamlit-1.5.7 lib/hamlit/filters/scss.rb
hamlit-1.5.6 lib/hamlit/filters/scss.rb
hamlit-1.5.5 lib/hamlit/filters/scss.rb
hamlit-1.5.4 lib/hamlit/filters/scss.rb
hamlit-1.5.3 lib/hamlit/filters/scss.rb
hamlit-1.5.2 lib/hamlit/filters/scss.rb
hamlit-1.5.1 lib/hamlit/filters/scss.rb