Sha256: 22f10a38f69f73c88078ce70ff82419ac71581e31858e91ca9103b9ef84f83e9

Contents?: true

Size: 379 Bytes

Versions: 7

Compression:

Stored size: 379 Bytes

Contents

module Deface
  module Sources
    class Slim < Source
      def self.execute(override)
        if Rails.application.config.deface.slim_support
          ::Slim::ERBConverter.new.call(override.args[:slim])
        else
          raise Deface::NotSupportedError, "`#{override.name}` supplies :slim source, but slim_support is not detected."
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/deface-1.0.1/lib/deface/sources/slim.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/deface-1.0.1/lib/deface/sources/slim.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/deface-1.0.1/lib/deface/sources/slim.rb
deface-1.0.1 lib/deface/sources/slim.rb
deface-1.0.0 lib/deface/sources/slim.rb
deface-1.0.0.rc4 lib/deface/sources/slim.rb
deface-1.0.0.rc3 lib/deface/sources/slim.rb