Sha256: 2e8a863c642612aae0034c71398e1956ee6ba6d90e44729f7473ad6feb5c0fdb
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module RailsExternalAssets module Rails module ViewHelpers include RailsExternalAssets::AssetFinder def external_asset_js(path) ext_name = File.extname(path) ext = ext_name.empty? ? '.js' : '' external_asset("#{path}#{ext}") { |p| javascript_include_tag p } end def external_asset_css(path) ext_name = File.extname(path) ext = ext_name.empty? ? '.css' : '' external_asset("#{path}#{ext}") { |p| stylesheet_link_tag p } end def external_asset_img(path) external_asset(path) { |p| image_tag p } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_external_assets-0.3.1 | lib/rails_external_assets/rails/view_helpers.rb |
rails_external_assets-0.3.0 | lib/rails_external_assets/rails/view_helpers.rb |