Permalink
Browse files

Another Partial fix for #7

  • Loading branch information...
1 parent 10dbfde commit 9799e7622e22cb83b531d26ca7f3ba97e80d0420 @jMyles jMyles committed Oct 24, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 coldbrew/templatetags/coldbrew.py
@@ -64,7 +64,11 @@ def coffeescript(source_file_path):
# If the file already exists, we're not going to even bother reading the input again.
if os.path.exists(output_path):
- return output_path[len(settings.STATIC_ROOT):].replace(os.sep, '/').lstrip("/")
+ url = "%s/%s-%s.js" % (settings.COFFEESCRIPT_OUTPUT_DIR,
+ base_filename,
+ hashed_mtime
+ )
+ return url
coffeescript_string = get_string_from_path(full_path)

0 comments on commit 9799e76

Please sign in to comment.