Sha256: 1730a4fdb9daef3e75552aa936d990b2212fbc253975dba1b23846ee6a5c9b54

Contents?: true

Size: 148 Bytes

Versions: 4

Compression:

Stored size: 148 Bytes

Contents

module OpalHelper
  def opal_tag(&block)
    opal_code = capture(&block)
    js_code = Opal.compile(opal_code)
    javascript_tag js_code
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-rails-0.7.0 app/helpers/opal_helper.rb
opal-rails-0.7.0.beta2 app/helpers/opal_helper.rb
opal-rails-0.7.0.beta1 app/helpers/opal_helper.rb
opal-rails-0.6.3 app/helpers/opal_helper.rb