Permalink
Browse files

update the server.rb dev example to serve flutie css directly via sass

  • Loading branch information...
1 parent db68f4c commit 5adafbd9012f920b2af6af8b67ccb9cfb23f1427 @mjankowski mjankowski committed Oct 5, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 server.rb
View
@@ -1,9 +1,9 @@
require 'rubygems'
require 'sinatra'
+require 'sass'
set :views, ['app/views']
set :static, true
-set :public, 'app/assets'
helpers do
def stylesheet_link_tag(name)
@@ -14,3 +14,8 @@ def stylesheet_link_tag(name)
get '/' do
erb :"flutie/styleguides/show", :layout => :"layouts/flutie"
end
+
+get '/stylesheets/flutie.css' do
+ content_type 'text/css', :charset => 'utf-8'
+ scss :_flutie, :views => 'app/assets/stylesheets'
+end

0 comments on commit 5adafbd

Please sign in to comment.