Permalink
Browse files

Mount the hippie js files outside of our hippie app

The Web::Hippie::Pipe middleware overwrites PATH_INFO, which clobbers
required data for ::App::JSFiles.
  • Loading branch information...
1 parent fbb46d0 commit e32ab85be5f72e60f29001af9b663f04959921db @jasonmay committed Feb 26, 2012
Showing with 7 additions and 8 deletions.
  1. +1 −0 lib/App/Termcast/Server/Web.pm
  2. +0 −2 lib/App/Termcast/Server/Web/Hippie.pm
  3. +6 −6 web/tt/terminal.tt
@@ -95,6 +95,7 @@ router as {
mount '/_hippie' => 'App::Termcast::Server::Web::Hippie' => (
connections => 'connections',
);
+ mount '/hippiejs' => 'Web::Hippie::App::JSFiles';
}, (tv => 'tv');
XSLoader::load(__PACKAGE__);
@@ -52,8 +52,6 @@ sub build_middleware {
router as {
route '/new_listener' => 'root.new_listener';
route '/error' => 'root.error';
-
- mount '/files' => 'Web::Hippie::App::JSFiles';
}, (root => 'root');
no Moose;
View
@@ -1,11 +1,11 @@
<script type="text/javascript" src="../static/js/stream.js"> </script>
-<script src="/_hippie/files/jquery.ev.js"></script>
-<script src="/_hippie/files/DUI.js"></script>
-<script src="/_hippie/files/Stream.js"></script>
-<script src="/_hippie/files/hippie.js"></script>
+<script src="/hippiejs/jquery.ev.js"></script>
+<script src="/hippiejs/DUI.js"></script>
+<script src="/hippiejs/Stream.js"></script>
+<script src="/hippiejs/hippie.js"></script>
[% IF 0 %]<script src="../static/myhippie.js"></script>[% END %]
-<script src="/_hippie/files/hippie.pipe.js"></script>
-<script src="/_hippie/files/json2.js"></script>
+<script src="/hippiejs/hippie.pipe.js"></script>
+<script src="/hippiejs/json2.js"></script>
<script type="text/javascript">
// <!--

0 comments on commit e32ab85

Please sign in to comment.