Browse files

structure

  • Loading branch information...
1 parent 62878cf commit fc0b71a6fd4e098461a4236669a84c30cc9dfde3 @stevegraham stevegraham committed Jan 27, 2012
Showing with 12 additions and 4 deletions.
  1. +2 −2 Guardfile
  2. +8 −0 app.rb
  3. 0 app/.index.html.haml
  4. +1 −1 {html → app}/index.html
  5. 0 {javascripts → app}/jpc.js
  6. +1 −1 haml/index.html.haml
View
4 Guardfile
@@ -1,9 +1,9 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
-guard 'haml', output: 'html', input: 'haml' do
+guard 'haml', output: 'app', input: 'haml' do
watch %r{^haml/.+(\.html\.haml)}
end
-guard 'coffeescript', input: 'coffeescripts', output: 'javascripts'
+guard 'coffeescript', input: 'coffeescripts', output: 'app'
View
8 app.rb
@@ -0,0 +1,8 @@
+require 'sinatra'
+
+set :public_folder, File.dirname(__FILE__) + '/app'
+
+get '/' do
+ redirect '/index.html'
+end
+
View
0 app/.index.html.haml
No changes.
View
2 html/index.html → app/index.html
@@ -2,7 +2,7 @@
<head>
<title>JPC2000 &ndash; JavaScript Production Center</title>
<script src='http://code.jquery.com/jquery-1.7.1.min.js' type='text/javascript'></script>
- <script src='../javascripts/jpc.js' type='text/javascript'></script>
+ <script src='jpc.js' type='text/javascript'></script>
</head>
<body>
<style type='text/css'>
View
0 javascripts/jpc.js → app/jpc.js
File renamed without changes.
View
2 haml/index.html.haml
@@ -3,7 +3,7 @@
%title JPC2000 &ndash; JavaScript Production Center
%script{ type: 'text/javascript', src: 'http://code.jquery.com/jquery-1.7.1.min.js' }
- %script{ type: 'text/javascript', src: '../javascripts/jpc.js' }
+ %script{ type: 'text/javascript', src: 'jpc.js' }
%body
:css

0 comments on commit fc0b71a

Please sign in to comment.