Sha256: 0c390e634daf0725a74cfe4f0331235a01e3a91d471ddd5295bbe05635173c6a

Contents?: true

Size: 793 Bytes

Versions: 2

Compression:

Stored size: 793 Bytes

Contents

# Sprockets Source URL

Source URLs are awesome little 'meta comments' that the browser can use for finding the names of scripts. For example:

    //@ sourceURL=my/script/name

This means that instead of seeing one compiled file in Chrome's inspector, like this:

![Before](http://img.svbtle.com/maccman-24080139362178-raw.png)

You see your whole directory tree:

![After](http://img.svbtle.com/maccman-24080139476460-raw.png)

So much easier to navigate! The alternative to this is to spit out multiple script tags into the page.

## Usage

Just require `sprockets/source_url` in development.

## @sourceURL

Both Chrome and Firefox have `@sourceURL` support. For more information, please see this [excellent post on the subject](http://pmuellr.blogspot.com/2009/06/debugger-friendly.html).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprockets-source-url-0.0.2 README.md
sprockets-source-url-0.0.1 README.md