Permalink
Browse files

a note about stylesheet location.

  • Loading branch information...
seaofclouds committed Mar 16, 2009
1 parent e67b4a9 commit 1b32caa7987def5b3fbde46a0688488950092e00
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
View
2 app.rb
@@ -8,7 +8,7 @@
set :root, File.dirname(__FILE__)
set :views, "views"
-#
+# at a minimum, the main sass file must reside within the ./views directory. here, we create a ./views/stylesheets directory where all of the sass files can safely reside.
get '/stylesheets/:name.css' do
content_type 'text/css', :charset => 'utf-8'
sass(:"stylesheets/#{params[:name]}", :sass => { :load_paths => ( [ File.join(Sinatra::Application.views, 'stylesheets') ] + Compass::Frameworks::ALL.map { |f| f.stylesheets_directory } ) } )

0 comments on commit 1b32caa

Please sign in to comment.