Sha256: 65c4c8f83982fd2b626c4bf0e072fcd34650455c4763dbec921eecb88175a9f1

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

module ViewAssets
  # TODO add rspec examples
  class JavascriptAssets < AssetsFinder
    def assets_path
      # 'assets/javascripts'
      'javascripts'
    end
    
    def asset_extension
      'js'
    end
    
    def asset_type
      'javascript'
    end
    
    def tag(js_src)
      %(<script src="#{js_src}" type="text/javascript"></script>)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
view_assets-0.0.12 lib/view_assets/js_assets.rb
view_assets-0.0.11 lib/view_assets/js_assets.rb
view_assets-0.0.10 lib/view_assets/js_assets.rb
view_assets-0.0.9 lib/view_assets/js_assets.rb
view_assets-0.0.8 lib/view_assets/js_assets.rb