Method: Padrino::Helpers::AssetTagHelpers#stylesheet_link_tag
- Defined in:
- lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/asset_tag_helpers.rb
#stylesheet_link_tag(*sources, options = {}) ⇒ String
Returns an html script tag for each of the sources provided. You can pass in the filename without extension or a symbol and we search it in your appname.public_folder
like app/public/stylesheets for inclusion. You can provide also a full path.
254 255 256 257 258 259 260 |
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/asset_tag_helpers.rb', line 254 def stylesheet_link_tag(*sources) = sources..symbolize_keys .reverse_merge!(:media => 'screen', :rel => 'stylesheet', :type => 'text/css') sources.flatten.map { |source| tag(:link, .reverse_merge(:href => asset_path(:css, source))) }.join("\n").html_safe end |