Sha256: 3732900f6978cf0044c449664d42312a5322c24a4e713959fec17db0250703ef

Contents?: true

Size: 501 Bytes

Versions: 14

Compression:

Stored size: 501 Bytes

Contents

module Ruby2JS
  class Converter

   # (taglit
   #   (arg :tag)
   #   (dstr)

    handle :taglit do |tag, *children|
      begin
        # disable autobinding in tag literals
        save_autobind, @autobind = @autobind, false
      
        if es2015
          put tag.children.first
          parse_all(*children, join: '')
        else
          parse @ast.updated(:send, [nil, tag.children.last, *children])
        end
      ensure
        @autobind = save_autobind
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby2js-5.1.1 lib/ruby2js/converter/taglit.rb
ruby2js-5.1.0 lib/ruby2js/converter/taglit.rb
ruby2js-5.0.1 lib/ruby2js/converter/taglit.rb
ruby2js-5.0.0 lib/ruby2js/converter/taglit.rb
ruby2js-4.2.2 lib/ruby2js/converter/taglit.rb
ruby2js-4.2.1 lib/ruby2js/converter/taglit.rb
ruby2js-4.2.0 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.7 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.6 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.5 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.4 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.3 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.2 lib/ruby2js/converter/taglit.rb
ruby2js-4.1.1 lib/ruby2js/converter/taglit.rb