Sha256: 8926f42dc9f86518ed6ce3dfc0dce8b92d621c9b72a88bd5309f6abb47609be0

Contents?: true

Size: 1.1 KB

Versions: 14

Compression:

Stored size: 1.1 KB

Contents

framework = ask "What framework would you like to use (default: blueprint)?"
framework = 'blueprint' if framework.blank?

in_root do
  if yes? "Install haml in vendor/plugins (hit 'n' if you use it as a gem)?"
    run 'haml --rails .'
  end
  run "compass --rails -f #{framework} ."
end

layout_file = <<-FILE
!!! XML
!!!
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
  %head
    %meta{'http-equiv' => "content-type", :content => "text/html;charset=UTF-8"}
    %title= @browser_title || 'Default Browser Title'
    = stylesheet_link_tag 'compiled/screen.css', :media => 'screen, projection'
    = stylesheet_link_tag 'compiled/print.css', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'compiled/ie.css', :media => 'screen, projection'
    = stylesheet_link_tag 'scaffold'
  %body
    #container
      %h1 Welcome to Compass
      = yield
FILE

gem 'compass'

unless File.exists?('app/views/layouts/application.html.haml')
  file 'app/views/layouts/application.html.haml', layout_file
  puts "We've added a simple layout for you as well which includes the css. Enjoy!"
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
whtt-eric-beet-0.6.11 lib/beet/recipes/rails/css/compass.rb
whtt-eric-beet-0.6.10 lib/beet/recipes/rails/css/compass.rb
beet-0.6.9 lib/beet/recipes/rails/css/compass.rb
beet-0.6.8 lib/beet/recipes/rails/css/compass.rb
beet-0.6.7 lib/beet/recipes/rails/css/compass.rb
beet-0.6.6 lib/beet/recipes/rails/css/compass.rb
beet-0.6.5 lib/beet/recipes/rails/css/compass.rb
beet-0.6.4 lib/beet/recipes/rails/css/compass.rb
beet-0.6.3 lib/beet/recipes/rails/css/compass.rb
beet-0.6.1 lib/beet/recipes/rails/css/compass.rb
beet-0.6.0 lib/beet/recipes/rails/css/compass.rb
beet-0.5.0 lib/beet/recipes/rails/css/compass.rb
beet-0.4.6 lib/beet/recipes/rails/css/compass.rb
beet-0.4.5 lib/beet/recipes/rails/css/compass.rb