Permalink
Browse files

Use sprockets cgi script to serve concatenated output from one file p…

…laylick.js. Caches to disk with a server environment variable: SetEnv sprockets_generate_output_file true
  • Loading branch information...
1 parent e2dfebf commit 7225870770a833e8a4eccc3d56a63acdeb558c38 @jwheare committed Nov 11, 2009
Showing with 136 additions and 2,052 deletions.
  1. +5 −0 config/sprockets.yml
  2. +1 −5 public/index.html
  3. +0 −421 public/js/importers.js
  4. +0 −1,259 public/js/main.js
  5. +0 −367 public/js/models.js
  6. +127 −0 public/js/playlick.cgi
  7. +3 −0 src/js/playlick.js
@@ -0,0 +1,5 @@
+:load_path:
+ - src/js/
+:source_files:
+ - src/js/playlick.js
+:output_file: public/js/playlick.js
View
@@ -150,12 +150,8 @@ <h1 id="playlistTitle">Create a new playlist</h1>
<!-- Playdar -->
<script src="/lib/playdar/playdar_compressed.js"></script>
- <!-- Models -->
- <script src="/js/models.js"></script>
- <!-- Importers -->
- <script src="/js/importers.js"></script>
<!-- App -->
- <script src="/js/main.js"></script>
+ <script src="/js/playlick.js"></script>
<!-- Sound Manager 2 -->
<script src="/lib/playdar/soundmanager2-nodebug-jsmin.js"></script>
Oops, something went wrong.

0 comments on commit 7225870

Please sign in to comment.