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-2.0.3 lib/opal/rails/slim_filter.rb
opal-rails-2.0.2 lib/opal/rails/slim_filter.rb
opal-rails-2.0.1 lib/opal/rails/slim_filter.rb
opal-rails-2.0.0 lib/opal/rails/slim_filter.rb
opal-rails-1.1.2 lib/opal/rails/slim_filter.rb
opal-rails-1.1.1 lib/opal/rails/slim_filter.rb
opal-rails-1.1.0 lib/opal/rails/slim_filter.rb
opal-rails-1.0.1 lib/opal/rails/slim_filter.rb
opal-rails-1.0.0 lib/opal/rails/slim_filter.rb
opal-rails-1.0.0.rc1 lib/opal/rails/slim_filter.rb
opal-rails-0.9.5 lib/opal/rails/slim_filter.rb
opal-rails-0.9.4 lib/opal/rails/slim_filter.rb
opal-rails-0.9.3 lib/opal/rails/slim_filter.rb
opal-rails-0.9.1 lib/opal/rails/slim_filter.rb
opal-rails-0.9.0 lib/opal/rails/slim_filter.rb
opal-rails-0.8.1 lib/opal/rails/slim_filter.rb
opal-rails-0.8.0 lib/opal/rails/slim_filter.rb
opal-rails-0.8.0.rc1 lib/opal/rails/slim_filter.rb
opal-rails-0.7.0 lib/opal/rails/slim_filter.rb
opal-rails-0.7.0.beta2 lib/opal/rails/slim_filter.rb