class Pannier::Tags::JavaScript
Public Instance Methods
call(path, attrs)
click to toggle source
# File lib/pannier/mounted/tags.rb, line 38 def call(path, attrs) attrs = attrs_to_s({ :type => 'text/javascript', :src => path }.merge(attrs)) template.result(binding) end
template()
click to toggle source
# File lib/pannier/mounted/tags.rb, line 47 def template ERB.new(<<-erb.strip) <script <%= attrs %>></script> erb end