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-1.2.7 lib/wunderbar/backtick.rb
wunderbar-1.2.6 lib/wunderbar/backtick.rb
wunderbar-1.2.5 lib/wunderbar/backtick.rb
wunderbar-1.2.4 lib/wunderbar/backtick.rb
wunderbar-1.2.3 lib/wunderbar/backtick.rb
wunderbar-1.2.2 lib/wunderbar/backtick.rb
wunderbar-1.2.1 lib/wunderbar/backtick.rb
wunderbar-1.2.0 lib/wunderbar/backtick.rb
wunderbar-1.1.2 lib/wunderbar/backtick.rb
wunderbar-1.1.1 lib/wunderbar/backtick.rb
wunderbar-1.1.0 lib/wunderbar/backtick.rb
wunderbar-1.0.28 lib/wunderbar/backtick.rb
wunderbar-1.0.27 lib/wunderbar/backtick.rb
wunderbar-1.0.26 lib/wunderbar/backtick.rb
wunderbar-1.0.25 lib/wunderbar/backtick.rb
wunderbar-1.0.24 lib/wunderbar/backtick.rb
wunderbar-1.0.23 lib/wunderbar/backtick.rb
wunderbar-1.0.21 lib/wunderbar/backtick.rb
wunderbar-1.0.20 lib/wunderbar/backtick.rb
wunderbar-1.0.19 lib/wunderbar/backtick.rb