Class: Merb::Assets::UniqueAssetPath

Class | Merb::Assets::UniqueAssetPath
In: | lib/merb-assets/assets.rb
Parent: | Object

Helper for creating unique paths to a file name Can increase speend for browsers that are limited to a certain number of connections per host for downloading static files (css, js, images…)

### Methods

build calculate_host_id

### Public Class methods

build(filename)

Builds the path to the file based on the name

#### Parameters

filename<String>: | Name of file to generate path for

#### Returns

String: | The path to the asset.

#### Examples

      build("/javascripts/my_fancy_script.js")
      # => "https://assets5.my-awesome-domain.com/javascripts/my_fancy_script.js"

### Protected Class methods

calculate_host_id(filename)

Calculates the id for the host

[Validate]