Sha256: ad0216ee03f250685bae7745774ab67b1019c412d12686e38f0931f6c16abb3c

Contents?: true

Size: 290 Bytes

Versions: 21

Compression:

Stored size: 290 Bytes

Contents

module Slim
  class Embedded
    class OpalEngine < TiltEngine
      protected

      def tilt_render(tilt_engine, tilt_options, text)
        [:static, ::Opal.compile(text)]
      end
    end
    register :opal, JavaScriptEngine, :engine => OpalEngine
  end
end if defined? Slim::Embedded

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-rails-0.7.0.beta1 lib/opal/rails/slim_filter.rb