class Pannier::Tags::CSS
Public Instance Methods
call(path, attrs)
click to toggle source
# File lib/pannier/mounted/tags.rb, line 57 def call(path, attrs) attrs = attrs_to_s({ :rel => 'stylesheet', :type => 'text/css', :href => path }.merge(attrs)) template.result(binding) end
template()
click to toggle source
# File lib/pannier/mounted/tags.rb, line 67 def template ERB.new(<<-erb.strip) <link <%= attrs %> /> erb end