GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
rack static urls in generated configs [#39]
automatthew (author)
Tue Jul 01 11:28:46 -0700 2008
commit  b935bbb1cb95ffc746668734ba1ffe8fcafdacd0
tree    6e89fa2599edc157e458b4bfcd066d56bfc7a86b
parent  ada72cf4274ef00bdf8f468dcf5486ffbb7b709f
...
20
21
22
 
23
24
25
...
20
21
22
23
24
25
26
0
@@ -20,6 +20,7 @@ module <%= @name %>
0
 
0
       application do
0
         use ::Rack::ShowExceptions
0
+ use ::Rack::Static, :urls => [ '/css', '/javascript' ], :root => 'public'
0
         run ::Waves::Dispatchers::Default.new
0
       end
0
 
...
22
23
24
 
25
26
27
...
22
23
24
25
26
27
28
0
@@ -22,6 +22,7 @@ module <%= @name %>
0
       # handler ::Rack::Handler::Thin, :Host => host, :Port => port
0
 
0
       application do
0
+ use ::Rack::Static, :urls => [ '/css', '/javascript' ], :root => 'public'
0
         run ::Waves::Dispatchers::Default.new
0
       end
0
 

Comments

    No one has commented yet.