Skip to content

Commit

Permalink
update the server.rb dev example to serve flutie css directly via sass
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Oct 5, 2011
1 parent db68f4c commit 5adafbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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.