Sha256: 05d20126b87252a1c47f1d4ca85d6f8f8ad8f4cf05c95176c75031dc16103fe3

Contents?: true

Size: 273 Bytes

Versions: 53

Compression:

Stored size: 273 Bytes

Contents

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

require 'ruby2js'

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
wunderbar-0.24.3 lib/wunderbar/backtick.rb
wunderbar-0.24.2 lib/wunderbar/backtick.rb
wunderbar-0.24.1 lib/wunderbar/backtick.rb
wunderbar-0.24.0 lib/wunderbar/backtick.rb
wunderbar-0.23.2 lib/wunderbar/backtick.rb
wunderbar-0.23.1 lib/wunderbar/backtick.rb
wunderbar-0.23.0 lib/wunderbar/backtick.rb
wunderbar-0.22.4 lib/wunderbar/backtick.rb
wunderbar-0.22.3 lib/wunderbar/backtick.rb
wunderbar-0.22.2 lib/wunderbar/backtick.rb
wunderbar-0.22.1 lib/wunderbar/backtick.rb
wunderbar-0.22.0 lib/wunderbar/backtick.rb
wunderbar-0.21.4 lib/wunderbar/backtick.rb