Permalink
Browse files

better docs

  • Loading branch information...
1 parent d04b7b4 commit 228d468622d35cb24ebb1d6b28f47bfeb45340b7 @maccman committed May 23, 2012
Showing with 8 additions and 2 deletions.
  1. +5 −1 README.md
  2. +3 −1 lib/sprockets/source_url.rb
View
@@ -12,7 +12,11 @@ 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 up multiple script tags into the page.
+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
@@ -18,5 +18,7 @@ def evaluate(scope, locals, &block)
end
end
- register_postprocessor 'application/javascript', SourceURL
+ if defined?(register_postprocessor)
+ register_postprocessor 'application/javascript', SourceURL
+ end
end

0 comments on commit 228d468

Please sign in to comment.