Skip to content

Commit

Permalink
Use /js and /css for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
namelessjon committed Mar 31, 2012
1 parent cbd120b commit d71e0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sinatra/simple_assets.rb
Expand Up @@ -25,8 +25,8 @@ def self.registered(app)
app.helpers SimpleAssets::Helpers

[
{ :route => '/stylesheets', :type => :css },
{ :route => '/javascripts', :type => :js }
{ :route => '/css', :type => :css },
{ :route => '/js', :type => :js }
].each do |r|
app.get "#{r[:route]}/:bundle" do |bundle|
assets = settings.assets
Expand Down
2 changes: 1 addition & 1 deletion lib/sinatra/simple_assets/bundle.rb
Expand Up @@ -45,7 +45,7 @@ def combined
end

def path
@type == :js ? 'javascripts' : 'stylesheets'
@type.to_s
end

def compile
Expand Down

0 comments on commit d71e0e6

Please sign in to comment.