Sha256: eef5f5f5db10fb5558082ef987e0eeeef24b7ffcfd9bc8a2fccab03ac0d5f9a4

Contents?: true

Size: 985 Bytes

Versions: 23

Compression:

Stored size: 985 Bytes

Contents

COMPASS_INIT = <<-COMPASS unless defined?(COMPASS_INIT)
    # Enables support for Compass, a stylesheet authoring framework based on SASS.
    # See http://compass-style.org/ for more details.
    # Store Compass/SASS files (by default) within 'app/stylesheets'.
    require 'sass/plugin/rack'

    Compass.configuration do |config|
      config.project_path = Padrino.root
      config.sass_dir = "app/stylesheets"
      config.project_type = :stand_alone
      config.http_path = "/"
      config.css_dir = "public/stylesheets"
      config.images_dir = "public/images"
      config.javascripts_dir = "public/javascripts"
      config.output_style = :compressed
    end

    Compass.configure_sass_plugin!
    Compass.handle_configuration_change!

    app.use Sass::Plugin::Rack
COMPASS

def setup_stylesheet
  require_dependencies 'compass-blueprint'
  initializer :compass, COMPASS_INIT.chomp
  directory "components/stylesheets/compass/", destination_root('/app/stylesheets')
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.15.3 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.15.2 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.15.1 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.15.0 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.4 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.3 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.12.9 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.2 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.13.3.4 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.1.1 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.1 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.0.2 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.0.1 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.0 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.13.3.3 lib/padrino-gen/generators/components/stylesheets/compass.rb
padrino-gen-0.13.3.2 lib/padrino-gen/generators/components/stylesheets/compass.rb