Sha256: a54fc44727433f91a3a6e6f664a1c84f6a3874378ed4c6c70e2a56d5563bf4a0

Contents?: true

Size: 237 Bytes

Versions: 15

Compression:

Stored size: 237 Bytes

Contents

# Redefine backtic in HTML templates to do a Ruby => JS conversion.  Useful
# when there is a substantial amount of embedded JavaScript.

require 'ruby2js'

class Wunderbar::HtmlMarkup
  def `(input)
    Ruby2JS.convert(input)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wunderbar-1.6.0 lib/wunderbar/backtick.rb
wunderbar-1.5.1 lib/wunderbar/backtick.rb
wunderbar-1.5.0 lib/wunderbar/backtick.rb
wunderbar-1.4.5 lib/wunderbar/backtick.rb
wunderbar-1.4.2 lib/wunderbar/backtick.rb
wunderbar-1.4.1 lib/wunderbar/backtick.rb
wunderbar-1.4.0 lib/wunderbar/backtick.rb
wunderbar-1.3.4 lib/wunderbar/backtick.rb
wunderbar-1.3.3 lib/wunderbar/backtick.rb
wunderbar-1.3.2 lib/wunderbar/backtick.rb
wunderbar-1.3.1 lib/wunderbar/backtick.rb
wunderbar-1.3.0 lib/wunderbar/backtick.rb
wunderbar-1.2.10 lib/wunderbar/backtick.rb
wunderbar-1.2.9 lib/wunderbar/backtick.rb
wunderbar-1.2.8 lib/wunderbar/backtick.rb