Module | Compass

In:

lib/compass/actions.rb
lib/compass/app_integration/merb/runtime.rb
lib/compass/app_integration/rails/actionpack3/railtie.rb
lib/compass/app_integration/rails/configuration_defaults.rb
lib/compass/app_integration/rails/installer.rb
lib/compass/app_integration/rails.rb
lib/compass/app_integration/stand_alone/configuration_defaults.rb
lib/compass/app_integration/stand_alone/installer.rb
lib/compass/app_integration/stand_alone.rb
lib/compass/app_integration.rb
lib/compass/browser_support.rb
lib/compass/commands/base.rb
lib/compass/commands/clean_project.rb
lib/compass/commands/create_project.rb
lib/compass/commands/default.rb
lib/compass/commands/generate_grid_background.rb
lib/compass/commands/help.rb
lib/compass/commands/imports.rb
lib/compass/commands/installer_command.rb
lib/compass/commands/interactive.rb
lib/compass/commands/list_frameworks.rb
lib/compass/commands/print_version.rb
lib/compass/commands/project_base.rb
lib/compass/commands/project_stats.rb
lib/compass/commands/sprite.rb
lib/compass/commands/stamp_pattern.rb
lib/compass/commands/unpack_extension.rb
lib/compass/commands/update_project.rb
lib/compass/commands/validate_project.rb
lib/compass/commands/watch_project.rb
lib/compass/commands/write_configuration.rb
lib/compass/compiler.rb
lib/compass/configuration/adapters.rb
lib/compass/configuration/comments.rb
lib/compass/configuration/data.rb
lib/compass/configuration/defaults.rb
lib/compass/configuration/file_data.rb
lib/compass/configuration/helpers.rb
lib/compass/configuration/inheritance.rb
lib/compass/configuration/serialization.rb
lib/compass/configuration.rb
lib/compass/errors.rb
lib/compass/frameworks.rb
lib/compass/grid_builder.rb
lib/compass/installers/bare_installer.rb
lib/compass/installers/base.rb
lib/compass/installers/manifest.rb
lib/compass/installers/manifest_installer.rb
lib/compass/installers/template_context.rb
lib/compass/logger.rb
lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb
lib/compass/sass_extensions/sprites/engines.rb
lib/compass/sass_extensions/sprites/image.rb
lib/compass/sass_extensions/sprites/image_methods.rb
lib/compass/sass_extensions/sprites/sprite_map.rb
lib/compass/sass_extensions/sprites/sprite_methods.rb
lib/compass/sass_extensions/sprites.rb
lib/compass/sprite_importer.rb
lib/compass/stats.rb
lib/compass/test_case.rb
lib/compass/version.rb
lib/compass.rb

To configure Merb to use compass do the following:

Add dependencies to config/dependencies.rb

dependency "haml", ">=2.2.0" dependency "merb-haml", merb_gems_version dependency "chriseppstein-compass", :require_as => ‘compass‘

To use a different sass stylesheets locations as is recommended by compass add this configuration to your configuration block:

Merb::BootLoader.before_app_loads do

      Merb::Plugins.config[:compass] = {
        :stylesheets => "app/stylesheets",
        :compiled_stylesheets => "public/stylesheets/compiled"
      }

end

### Methods

base_directory chunk const_missing crc lib_directory new png_join setup_template_location shared_extension_paths to_blob

### Classes and Modules

Module Compass::Actions
Module Compass::AppIntegration
Module Compass::BrowserSupport
Module Compass::Commands
Module Compass::Configuration
Module Compass::Exec
Module Compass::Frameworks
Module Compass::Installers
Module Compass::SassExtensions
Module Compass::Stats
Module Compass::Util
Module Compass::Version
Class Compass::Compiler
Class Compass::Error
Class Compass::FilesystemConflict
Class Compass::Logger
Class Compass::MissingDependency
Class Compass::NullLogger
Class Compass::PNG
Class Compass::Railtie
Class Compass::SpriteImporter
Class Compass::TestCase

### Constants

BITS | = | 8
RGB | = | 2
NONE | = | 0

### Public Class methods

chunk(type, data="")
const_missing(const)
crc(chunkdata='')
new(width, height, background = [255,255,255])

Initiates a new PNG-Object

- `width`: Width of the image in pixels
- `height`: Height of the image in pixels
- `background`: Background-color represented as [R,G,B]-Byte-Array

setup_template_location()

### Public Instance methods

base_directory()
lib_directory()
png_join()
shared_extension_paths()
to_blob()

binary representation of the PNG, write to file with binary mode

[Validate]